IsNumeric and IsNan function in JavaSsript

by Subramanian 2012-09-14 16:39:40



IsNumeric function used to check the numeric or not.

isNaN function used to check the value is a number or not. If the values is numeric its return true else returned false.


Syntax :

bool IsNumeric(string)




Code :

function IsNumeric(val) {

if (isNaN(parseFloat(val))) {

return false;

}

return true

}



Tagged in:

776
like
0
dislike
0
mail
flag

You must LOGIN to add comments