Divides the numerator by the denominator and returns the remainder.
mod(string|integer|float $n = 0, integer|float $d = 1): float
n (string|integer|float) : The numerator as an integer or float. Also accepts a fraction as string. (ex. '5/3')
d (integer|float) : The denominator as integer or float. Default value is 1. ^(optional)^
1
(float) : Returns the remainder as float. : Returns 0 if there is no remainder.
0
$fx->mod(5, 2) = 1 $fx->mod(17, 5) = 2 $fx->mod(2, 5) = 2
Home | CoreyFX | Mathematical
There was an error while loading. Please reload this page.