[Next] [Previous] [Up] [Top] [Contents] [Index]

13. Expressions

13. 5. Numerical Operators

The usual numerical operators + (addition), - (subtraction), * (multiplication), and / (division) are defined for integer and floating point values. The type of the result is the same as the type of the operators. If integer and floating point values are mixed, the integer value is converted to floating point and the calculation is done in floating point.

For integers, the operator % gives the remainder of the division.

Examples

Examples

MOLMOL Manual - 7 Oct 1997

[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with Harlequin WebMaker