trunc


Description:

public double trunc (double x)

Rounds argument x to the nearest integer not larger in absolute value.

Note:

Remember to link the math library: valac -X -lm ...

The GLib.Math.trunc function rounds argument x to the nearest integer not larger in absolute value.

Parameters:

x

A numeric value.


Namespace: GLib.Math
Package: glib-2.0