Float.NaN: This is available in java.lang.Float class of Java.
Syntax:
float java.lang.Float.NaN
A constant holding a Not-a-Number (NaN) value of type float (i.e. NaN)
Approach
Java
public class FloatNaN {public static void main(String[] args) {System.out.println(Float.NaN);}}
Output:
NaN
No comments:
Post a Comment