Nasal library functions: Difference between revisions

Jump to navigation Jump to search
Line 112: Line 112:


== ceil() ==
== ceil() ==
Returns the value rounded upward
Example:
<syntaxhighlight lang="nasal" enclose="div">
math.ceil(1.2); # returns 2
math.ceil(1.6); # returns 2
</syntaxhighlight>
== fmod() ==
== fmod() ==
A '''modulo'''-operator, mod(x,y) also works...<br>
A '''modulo'''-operator, mod(x,y) also works...<br>
29

edits

Navigation menu