INFINITY


Description:

[ CCode ( cname = "INFINITY" ) ]
public const float INFINITY

Indicates that the value is not representable by the underlying type (positive or negative infinity)

Example: Infinity:

public static int main (string[] args) {
// Output: ``inf -- 1 -- false``
float val = float.INFINITY;
print ("%f -- %s -- %s\n", val, val.is_infinity ().to_string (), val.is_finite ().to_string ());
return 0;
}

valac --pkg glib-2.0 float.INFINITY.vala