lrint
Description:
Rounds it's argument to the nearest integer value, using the current rounding direction.
Note:
Remember to link the math library: valac -X -lm ...
If x
is infinite or double.NAN, or if the rounded value is outside the
range of the return type, the numeric result is unspecified. A domain error may occur if the magnitude of x
is too large.
Parameters:
x |
A numeric value. |
Namespace: GLib.Math
Package: glib-2.0