GetNumericValue
GetNumericValue is a name used for a character-oriented function in several programming libraries. It provides the numeric value associated with a single Unicode character, rather than parsing multi-character numbers from strings. Implementations differ between languages, but the common purpose is to expose the underlying numeric value defined by Unicode data for a character.
In .NET, Char.GetNumericValue(char c) returns a double. The value corresponds to the numeric value assigned to
In Java, Character.getNumericValue(char ch) returns an int. It also follows Unicode data: decimal digits yield 0–9,
Usage considerations include recognizing that not all characters are numeric and results depend on Unicode data