Rem Operator

Divides two numbers and returns the remainder.

Syntax

expression_1 Rem expression_2

Parts

expression_1
A numeric expression.
expression_2
A numeric expression.

Instructions

The result has the same sign as the second expression. the operator Mod is almost the same, but its result has the sign of the first expression. You can think that the letter “M” in Rem is short for “minus sign”, and see that it is nearer the second expression.

Data types

TODO

Attempted division by zero

TODO

Examples

TODO

See also