Comparing Characters
- Updated2026-03-31
- 1 minute(s) read
Use the character comparison functions to determine the type of a character.
Character comparison functions include the following:
- Decimal Digit?
- Hex Digit?
- Octal Digit?
- Printable?
- White Space?
- Lexical Class
The type of input to these functions affects how the functions behave.
| Input Type | Function Behavior |
|---|---|
| String | Tests first character |
| Empty string | Returns FALSE |
| Number | Interprets number as ASCII character code |
| Floating-point number | Rounds to nearest integer |