isNumeric

Summary

Checks if the character is a numeric digit.

Usage

public bool isNumeric()

Returns

'true' if the character is a valid Arabic numeral digit and 'false' otherwise.

Description

Checks if the character is numeric digit.

This check will only perform the check on Arabic numeral digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Digits from other numbering systems are not included.

Examples

Check if a character is numeric
1
2
3
`2`.isNumeric(); // true
`3`.isNumeric(); // true
`a`.isNumeric(); // false

Share

HTML | BBCode | Direct Link