Loading

FLOORMOD


math
Since v1.2.23
Available on all platforms
See also

The FLOORMOD function consumes two LONG values and pushes back the floor modulus which is x - (floorDiv(x, y) * y).

Since 2.6.0, this function can be applied to a list of numeric values.

Signature

Examples

// The signs of the arguments are the same, the results are the same for % and FLOORMOD 1337 42 % 1337 42 FLOORMOD // The signs of the arguments are different, the results are different for % and FLOORMOD 1337 -42 % 1337 -42 FLOORMOD