lrintf


Description:

public long lrintf (float x)

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 float.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