Unofficial LSL Reference

[[functions:llround]]


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

This is an old revision of the document!


Function: llRound

Parameters

fval

any float value

Result

Returns the integer value that is the nearest to fval.

Notes

  • The function returns -2147483648 (Hex. 80000000) for float values greater than 2147483583 or less than -2147483648

Short examples

integer i = llRound(-3.3);   // i will become -3
integer i = llRound(3.3);    // i will become 3
integer i = llRound(-99.6); // i will become -100

See also