Nasal library functions: Difference between revisions

Jump to navigation Jump to search
Line 139: Line 139:


== fmod() ==
== fmod() ==
A '''modulo'''-operator, mod(x,y) also works...<br>
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() ==
378

edits

Navigation menu