Unofficial LSL Reference

[[functions:llfloor]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:llfloor [2014-12-09 16:45 SLT]
sei Add nav
functions:llfloor [2015-02-04 13:10 SLT] (current)
sei including infinity
Line 6: Line 6:
 </​code>​ </​code>​
  
-Round a float down to the closest integer less than or equal to it.+Round a $ty[floatdown to the closest ​$ty[integerless than or equal to it.
  
 ===== Parameters ===== ===== Parameters =====
  
 === fval === === fval ===
-The [[types/float]] value to be rounded down.+The $lty[float] value to be rounded down.
  
 ===== Return value ===== ===== Return value =====
  
-Returns the nearest [[types/integer]] value that is less than or equal to **fval**.+Returns the nearest ​$lty[integer] value that is less than or equal to $prm[fval].
  
 ===== Notes ===== ===== Notes =====
  
-  * The function returns -2147483648 (Hex. 80000000) for float values of 2147483648.0 or bigger, or less than -2147483648.0,​ or **NaN**.+  * The function returns -2147483648 (Hex. 0x80000000) for float values of 2147483648.0 ​(including $pinf) ​or bigger, or less than -2147483648.0 ​(including $minf), or $nan.
  
 ===== Short examples ===== ===== Short examples =====
Line 37: Line 37:
 ===== See also ===== ===== See also =====
  
-  * [[llRound]] rounds to nearest integer. +  * $lfn[llRound] rounds to nearest integer. 
-  * [[llCeil]] rounds always towards positive infinity (e.g. 1.1 is rounded up to 2.0 and -1.1 is rounded up to -1.0). +  * $lfn[llCeil] rounds always towards positive infinity (e.g. 1.1 is rounded up to 2.0 and -1.1 is rounded up to -1.0). 
-  * [[types/float]] type and associated caveats and limitations.+  * $lty[float] type and associated caveats and limitations.