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-05-16 05:08 SLT]
sei created
functions:llfloor [2015-02-04 13:10 SLT] (current)
sei including infinity
Line 1: Line 1:
 +$nav
 ===== Function: llFloor ===== ===== Function: llFloor =====
  
Line 5: 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 float value to be rounded down.+The $lty[floatvalue to be rounded down.
  
-===== Result ​=====+===== Return value =====
  
-Returns the float value that is the nearest integer ​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.+  * 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 36: 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.