378
edits
(→fmod()) |
|||
Line 139: | Line 139: | ||
== fmod() == | == fmod() == | ||
A '''modulo'''-operator | A '''modulo'''-operator. The [https://en.wikipedia.org/wiki/Modulo_operation modulo]-operation finds the remainder of division of one number by another (sometimes called modulus). | ||
The [https://en.wikipedia.org/wiki/Modulo_operation modulo]-operation finds the remainder of division of one number by another (sometimes called modulus). | |||
fmod(x , y) may be negative if x < 0, whereas mod() seems to guarantee that 0 ≤ mod(x,y) < y, according to tests made with x and y integers, y > 0, x positive or negative. | |||
== clamp() == | == clamp() == |
edits