suve

awful: function: ceil

Declaration

int :ceil ( float $NUMBER )

Summary

Returns the lowest integer equal-or-greater than given NUMBER (rounds value upwards).

Example

# :ceil example
:writeln :ceil f+3.3   # Should be +4
:writeln :ceil f-4.8   # Should be -4

wikistrona zmodyfikowana 2014/0601/2316