NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Double.Format (Double, String)

Converts a numeric value to a String with the default format string.

[Visual Basic]
Overloads Public Shared Function Format( _
   ByVal value As Double, _
   ByVal format As String _
) As String
[C#]
public static string Format(
   double value,
   string format
);
[C++]
public: static String* Format(
   double value,
   String* format
);
[JScript]
public static function Format(
   value : double,
   format : String
) : String;

Parameters

value
The value to be formatted.
format
The format string.

Return Value

A string representation of the number in the specified format.

Remarks

If format is null or an empty string, value is formatted as if the string general format ("G") were specified.

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).

See Also

Double Structure | Double Members | System Namespace | Double.Format Overload List | NumberFormatInfo | CultureInfo