over 5 years ago
isNaN() and isInfinite() methods in Java are the member functions of the java.lang.Double and java.lang.Float classes. Both the functions here are static member functions of the classes.
NaN here stands for the Not-a-Number, it specifies whether the constant holding the value is a number or not.
It always returns false for the values like any value parsed as a string.
The isInfinite() methods only check for the value as finite or infinite, but the isNaN() method performs to check the type of the value passed, It doesn't matter if the value is infinite or not.
for example :
isInfinite(2000) // false
isInfinite(0/0) // True
if the argument is not a number then isNaN() returns true, otherwise it will be false. if the argument is finite then isinfinite() returns false, otherwise if it is infinite then it will return true .
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using