@DIGITS

Print Topic  Return to Overview  Previous Topic  Next Topic 

@DIGITS[n]:  Returns 1 if the string is composed of decimal digits only, otherwise it returns 0. The Decimal character, the Thousands character, and the sign characters (+ or -) are not digits, and if they are present in the string @DIGITS will return 0.

 

Examples:

 

echo %@digits[12345]

echo %@digits[-12345]

echo %@digits[1.2345]

 

Topic "f_digits.htm" last edited 1/26/2008. ©2008  JP Software, Inc.
Keywords: @DIGITS