IsNumeric Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE

The IsNumeric function returns a Boolean value that indicates whether a specified expression can be evaluated as a number. It returns True if the expression is recognized as a number; otherwise, it returns False. IsNumeric returns False if expression is a date expression. The Is Numeric function determines if the expression is a number.

Note :- If expression is a date the IsNumeric function will return False.

The Syntax of the IsNumeric function is :-

IsNumeric(expression)

Example#1 :-

Code :-
dim x
x=10document.write(IsNumeric(x) & "<br />")
x=Empty
document.write(IsNumeric(x) & "<br />")
x=Null
document.write(IsNumeric(x) & "<br />")
x="10"
Output :-
True
True
False

Example#2 :-

Code :-
dim x
document.write(IsNumeric(x) & "<br />")
x="911 Help"
document.write(IsNumeric(x))
Output :-

True
False

Example#3 :-

Code :-
<%
=IsNumeric(123.456)
%>
Output :-
True

Example#4 :-

Code :-
<%
=IsNumeric("This is a string.")
%>
Output :-
False

 

 

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

+91-9967648641

+91-9967648641