4.7.1.18. Arithmetic Operators

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

Table 4.8 Operators

Operators

Associativity

( )

left to right

* /

left to right

\(+ -\)

left to right

Table 4.9 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.