INFINITY


Description:

[ CCode ( cname = "((double) INFINITY)" ) ]
public const double 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``
double val = double.INFINITY;
print ("%f -- %s -- %s\n", val, val.is_infinity ().to_string (), val.is_finite ().to_string ());
return 0;
}

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