Javascript Function - isFinite

Javascript Function - isFinite

isFinite(testnumber)
 
The function isFinite, is used to determine if the argument, testnumber, is a finite and legal number. This function returns true for a finite number and otherwise returns false.
 
Code:
document.write(isFinite(2.2345))
 
Output:
true
 
Code:
document.write(isFinite(2.5E+345))
 
Output:
false
 
Code:
document.write(isFinite(”Ima string”))
 
Output:
false

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.