The isdigit function

Description

The isdigit function returns a value of type boolean, which indicates whether the parameter passed to it is a digit. If the parameter is a digit then the value true is returned, and if the parameter is not a digit then the value false is returned.

Parameter

The isdigit function's only parameter is an expression of char type.

Example

    isdigit('a')  returns   false
    isdigit('A')  returns   false
    isdigit('1')  returns   true
    isdigit('@')  returns   false
    isdigit('_')  returns   false

Portability

Operating Systems: All
Standard Pascal: No