Operators

rem

Supported By

Syntax

expression rem expression

Each expression yields an integer, a number, or a complex.

Description

The rem operator evaluates to the remainder after division of the given values.

Notes

If either given value is a complex, the evaluated value will be a complex. Otherwise, the evaluated value will be a number.

The expression x rem y is equivalent to x-y*trunc(x/y).

Synonym

%

See Also

mod, /, quot, div