Inhalt

Index

Arithmetical Operators

^ or **: power of, priority 2

*: multiplication, priority 3

/: division, priority 3

MOD or %: remaining part of a division, priority 3

+: addition, priority 4.

-: subtraction, priority 4

Remarks

The "+" operator can be applied also to strings, in this case the strings are concatenated.

The division operator "/" always returns a real number. The other operators return integer numbers, if all operands are integer, in all other cases the result is real.

The priority of an operator specifies how "tightly" it binds two expressions together. For example, in the expression 1 + 5 * 3, the answer is 16 and not 18 because the multiplication ("*") operator has a higher priority than the addition ("+") operator. Parentheses may be used to force priorities, if necessary. For instance: (1 + 5) * 3 evaluates to 18.



Allplan

(C) ALLPLAN GmbH

Privacy policy