System.Globalization.CharUnicodeInfo.GetDigitValue Method

Gets the digit value of the specified numeric character.

Syntax

public static int GetDigitValue (char ch)

Parameters

ch
The Unicode character for which to get the digit value.

Returns

The digit value of the specified numeric character.

-or-

-1, if the specified character is not a digit.

Remarks

Digit value is a property that applies only to numeric characters that can be used as digits. A digit is a numeric character that can be combined with other digits to represent a whole number in a numbering system.

For more information on Unicode characters, see the tp://go.microsoft.com/fwlink/?linkid=37123.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0