Rem= Operator

Divides the value of a variable by the value of an expression, then assigns the remainder to the variable.

Syntax

variable Rem= expression

Parts

variable
Necessary numeric variable.
expression
Necessary numeric expression

Instructions

The following two statements are functionally equivalent.

variable Rem= expression
variable = variable Rem expression

Because it is derived from the Rem operator, the sign of the variable becomes that of the expression.

Data types

Attempted division by zero

Examples

Variable

Property

' Change value of property
#obj.value Rem= 2

See also