integer llFloor(float val);
Returns the largest
integer value <=
val (rounds down).
llFloor(val) is equivalent to
(integer)val if
val >= 0.
(integer)val is preferred, because it is faster.
The usage of these functions can be tricky. For examples of potential issues see
llFrand.
Compare with
llCeil and
llRound.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Math