NAN


Description:

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

Indicates that the value is not-a-number (NaN)

Example: Double and NAN:

public static int main (string[] args) {
// Output: ``nan -- true``
float val = float.NAN;
print ("%f -- %s\n", val, val.is_nan ().to_string ());
return 0;
}

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