You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
The float value to be rounded.
Returns the integer value that is the nearest to fval. If the decimal part is exactly .5, it will be rounded up (towards positive infinity).
integer i; // Any float between 2.5 and approx. 3.4999998 will cause the function to return 3 // (3.4999998 is the biggest possible float less than 3.5, due to float limitations) i = llRound(2.6); // i will become 3 i = llRound(3.3); // i will become 3 i = llRound(3.499); // i will become 3 i = llRound(3.5); // i will become 4 i = llRound(3.501); // i will become 4 // Any float between -3.5 and approx. -2.5000002 will cause the function to return -3 // (-2.5000002 is the smallest possible float greater than -2.5, due to float limitations) i = llRound(-3.3); // i will become -3 i = llRound(-3.499); // i will become -3 i = llRound(-3.5); // i will become -3 i = llRound(-3.501); // i will become -4