rules/numbers/is_number
library
Classes
-
IsNumber
-
checks if the input is a valid
integer
Functions
-
isNumber(String? input)
→ bool
-
Returns
true if input is a base-10 integer (surrounding whitespace is
trimmed first). Parsing is pinned to radix: 10, so the 0x hex prefix,
scientific notation and decimals are all rejected — use isDecimal for
fractional values.