$nav ===== Function: llCeil ===== integer llCeil(float fval) Round a float up to the closest integer greater than or equal to it. ===== Parameters ===== === fval === The float value to be rounded up. ===== Return value ===== Returns the nearest $lty[integer] value that is greater than or equal to $prm[fval]. ===== Notes ===== * The function returns -2147483648 (Hex. 0x80000000) for float values of 2147483648.0 or bigger (including $pinf), or less than -2147483648.0 (including $minf), or $nan. ===== Short examples ===== integer i; i = llCeil(3.0); // Sets i to 3, which is greater or equal to 3.0 (in this case, equal). i = llCeil(3.001); // Sets i to 4, not 3, because 3 is less than 3.001 and the result must be greater or equal. i = llCeil(3.999); // Sets i to 4 i = llCeil(4.0); // Sets i to 4 i = llCeil(-3.0); // Sets i to -3 i = llCeil(-3.001); // Sets i to -3, which is greater or equal to -3.001 (in this case, greater) i = llCeil(-3.999); // Sets i to -3 i = llCeil(-4.0); // Sets i to -4 ===== See also ===== * $lfn[llRound] rounds to nearest integer. * $lfn[llFloor] rounds always towards negative infinity (e.g. 1.1 is rounded down to 1.0 and -1.1 is rounded down to -2.0). * $lty[float] type and associated caveats and limitations.