How to use Arithmetic Operators

 

Arithmetic Operators summarizes the rules for the precedence and associativity of operators.

 

Operators

Associativity

(     )

left to right

*     /

left to right

+     -

left to right

 

Format

+

Add

-

Subtract

*

Multiply

/

Divide

**

Power

 

Caution

division by zero”: If the denominator is exactly ZERO, RecurDyn changes the denominator to 1.e-20.

 

Example

They are used as general arithmetic symbols. In particular, 2**n, means 2 to the nth power. Also, for ‘/’, if a number is divided by 0, the calculation should be expressed as 1e-20, rather than 0.