Skip to content

mod

builtin · libnexusinterp/corefcn/data-proprietary.cc

: r = mod (x, y)

Modulus after floor division: x - floor (x ./ y) .* y, with the sign of y. mod (x, 0) is x. Integer operands use integer arithmetic and the integer class; logical and character operands are treated as double.