Converts a numeric value to a String with the specified format string provided by NumberFormatInfo.
[Visual Basic] Overloads Public Shared Function Format( _ ByVal value As Double, _ ByVal format As String, _ ByVal info As NumberFormatInfo _ ) As String [C#] public static string Format( double value, string format, NumberFormatInfo info ); [C++] public: static String* Format( double value, String* format, NumberFormatInfo* info ); [JScript] public static function Format( value : double, format : String, info : NumberFormatInfo ) : String;
A String representation of the number in the specified format.
If format is null or an empty string, value is formatted as if the string "G" (general format) were specified.
The info parameter specifies the NumberFormatInfo instance used to format the number. If info is null, the numeric format information is obtained from the current locale (in addition see CultureInfo).
The NumberFormatInfo supplies information such as the characters to use for decimal and thousand separators, and the spelling and placement of currency symbols in monetary values. (See CultureInfo.)
The numeric format information is obtained from the current locale (for more information on numeric formats, see NumberFormatInfo). Various cultures have unquie numberic and currency formating, such as Portugese, Kazakh, or Farsi (for addition information on cultures, see CultureInfo).
Double Structure | Double Members | System Namespace | Double.Format Overload List | NumberFormatInfo | CultureInfo