mod

Parent Previous Next

mod

y = mod ( x,div )
y = x.mod ( div )
y = x % div

Remainder after division (modulo operation)

arg

type

Description

Unit or Value scale

x

SCAL, VCT or AUDIO

n/a


div

SCAL

n/a


Outputs

  • y is the remainder after division of x by div

Notes

Examples

  • mod(17,5) rarr; 2
  • mod(-1,3) rarr; -1
  • (12).mod(5) rarr; 2

See Also

Created with the Personal Edition of HelpNDoc: Easily create EPub books