Culture-Sensitive C# Method
using System
public static double ToDouble(bool value);
public static double ToDouble(byte value);
public static double ToDouble(char value);
public static double ToDouble(DateTime value);
public static double ToDouble(decimal value);
public static double ToDouble(double value);
public static double ToDouble(short value);
public static double ToDouble(int value);
public static double ToDouble(long value);
public static double ToDouble(Object value);
public static double ToDouble(sbyte value);
public static double ToDouble(float value);
public static double ToDouble(string value);
public static double ToDouble(ushort value);
public static double ToDouble(uint value);
public static double ToDouble(ulong value);
public static double ToDouble(Object value, IFormatProvider provider);
public static double ToDouble(string value, IFormatProvider provider);
Internationalization (I18n) Method Overview
The ToDouble method converts the passed in parameter to a double-precision floating-point number.
For more information see Microsoft's
MSDN online documentation.
I18n Issues
To ensure that culture-sensitive formatting is done properly, call the versions that pass in the Culture (IFormatProvider ).
|