Is NaN isNaN isInfinite number value Java Android example

float, double is NaN isNaN() isInfinite() Java Android example.

float f = 0.f;
boolean bIsNaN = Float.isNaN(f);
boolean bIsInfinite = Float.isInfinite(f);
 double d = Math.sqrt(-10);
 boolean b = Double.isNaN(d);
This entry was posted in Android Examples Code, Bugs, warnings, errors and tagged . Bookmark the permalink.

Comments are closed.