LF: Basic Math - ADD, SUB, MUL, DIV, MOD

 

The basic Math functions and their parameters are listed below.

 

Note that if you perform calculations for example, DIV, with REAL and Constant values, you must include a decimal point in the constant value, for example #12.0.

ADD

 

Parameter Name

A

Addend A

B

Addend B

C

Sum, output value of A+B

SUB (Subtract)

 

Parameter Name

A

Minuend, original value

B

Subtrahend, subtracted from Minuend

C

Difference: output value of A-B

MUL (Multiply)

 

Parameter Name

A

Multiplicand, original value

B

Multiplier, multiplies the Multiplicand

C

Product: output value of A x B

DIV (Divide)

 

Parameter Name

A

Dividend, original value

B

Divisor, divides the Dividend

C

Quotient: output value of A/B

 

MOD (Modulo)

 

Parameter Name

A

Dividend, original value

B

Divisor, divides the Dividend

C

Result: Division Remainder after A/B