isdigit()

Read(4151) Label: number, boolean value,

Description:

Check if a string is composed of numbers.

Syntax:

isdigit (string)

Note:

The function checks if the string string is composed of numbers. If string is an integer, look it up in the ASCII table to see if the corresponding characters are a number.

Parameter:

String

String/ numeric expression

Return value:

Boolean value

Example:

isdigit("123")

true

isdigit(123)

false

isdigit("abc")

false

isdigit("123ss")

false

Related function:

isalpha()