invaliddigit
Invalid digit refers to a character that is not valid as part of a numeric representation in a given numeral system or data format. In base-N notation, each position may contain one of N symbols representing digits. A character outside the allowed digit set is considered an invalid digit and may cause a parsing or conversion error when the value is read or processed.
In programming languages, invalid digits commonly occur when interpreting numeric literals or numeric strings. The allowed
Common error handling approaches include validating input before parsing, or using parsing functions that specify the
See also: digit, numeral system, base (radix), parsing, input validation.