Rem Operator

Divides two numbers and returns the remainder.

Syntax

expression_1 Rem expression_2

Parts

expression_1
Necessary numeric expression
expression_2
Necessary numeric expression

Instructions

The result has the same sign as the second expression. The similar Mod operator differs by taking the sign of the first expression instead. One way to remember this is that the “M” in “Rem” is nearer to the second expression.

Data types

Attempted division by zero

Examples

See also