isnumber Function

Checks to see if an argument value contains a numerical value. When the argument value is a number, the function returns true; otherwise, it returns false.

Category: Information and Conversion
Returned data type: Integer
Note: The returned value is a Boolean value.

Syntax

argvaluebooleanISNUMBER()

Required Argument

argvalue

string

Details

The isnumber function takes the following argument types: string.

Example

string x

string y

date z

string error_message1

string error_message2

string error_message3

 

x ="5"

y="Hello"

z="01/01/10"

 

if(isnumber(x) )

   error_message1 = "String x is a number"

else

   error_message1= "String x is not a number"

 

if( isnumber(y) )

   error_message2 =" String y value is a number"

else

   error_message2 =" String y value is not a number"

 

if( isnumber(z) )

   error_message3 = "String z value is a number"

else

   error_message3 = "String z value is not a number"