What’s the deal with char.GetNumericValue?

Remember that it’s taking a Unicode character and returning a value. ‘0’ through ‘9’ are the standard decimal digits, however there are other Unicode characters that represent numbers, some of which are floating point.

Like this character: ¼

Console.WriteLine( char.GetNumericValue( '¼' ) );

Outputs 0.25 in the console window.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)