Contents
Up
Previous
Next


Multiplying operators


The multiplying operators are *, /, rem and mod. The * and / operators are defined for integer and real types and have their usual meanings. Mod and rem are similar operators that compute the modulus or remainder value of two integers. The rem operator computes the remainder as expected. The mod operator is similar to rem, except the sign of the result is the sign of the argument to the right of the operator. For example, -4 rem 3 is -1 but -4 mod 3 is 1.