suve

awful: function: floor

Declaration

int :floor ( float $NUMBER )

Summary

Returns the greatest integer equal-or-lesser than given NUMBER (rounds value downwards).

Example

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

wikistrona zmodyfikowana 2014/0601/2317