mod
Remainder after division (modulo operation)
Syntax
y = mod ( x,div )
y = x.mod ( div )
y = x % div
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
x | SCAL, VCT or audio | n/a | n/a |
div | scalar | n/a | n/a |
Outputs / Return Value
y:yis the remainder after division ofxbydiv
Examples
mod(17,5) %rarr; 2
mod(-1,3) %rarr; -1
(12).mod(5) %rarr; 2
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.