System.Globalization.CharUnicodeInfo.GetNumericValue C# (CSharp) Method

GetNumericValue() public static method

public static GetNumericValue ( char ch ) : double
ch char
return double
        public static double GetNumericValue(char ch) {
            return (InternalGetNumericValue(ch));
        }

Same methods

CharUnicodeInfo::GetNumericValue ( String s, int index ) : double

Usage Example

 /// <summary>Gets the numeric value associated with the character at the specified index of the specified string.</summary>
 /// <returns>The numeric value associated with the character at the specified index of the specified string.-or- -1, if the character at the specified index of the specified string is not a numeric character.</returns>
 /// <param name="s">The <see cref="T:System.String" /> containing the Unicode character for which to get the numeric value. </param>
 /// <param name="index">The index of the Unicode character for which to get the numeric value. </param>
 /// <exception cref="T:System.ArgumentNullException">
 ///   <paramref name="s" /> is null. </exception>
 /// <exception cref="T:System.ArgumentOutOfRangeException">
 ///   <paramref name="index" /> is outside the range of valid indexes in <paramref name="s" />. </exception>
 public static double GetNumericValue(string s, int index)
 {
     if (s == null)
     {
         throw new ArgumentNullException("s");
     }
     return(CharUnicodeInfo.GetNumericValue(s[index]));
 }
All Usage Examples Of System.Globalization.CharUnicodeInfo::GetNumericValue