flr x
Returns the closest integer below x
flr(-0.3) returns -1.0
Same as (x%1) for positive values of x
print(flr(1.3)) --> 1
print(1.3%1) --> 0.3
Same as (x - x%1) for positive values of x
This should be corrected in the manual.
P#18337 2016-01-17 15:35 ( Edited 2016-01-18 11:57)
[Please log in to post a comment]