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!

Decimal.Format (Decimal, String)

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

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

Parameters

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

Return Value

A String representation of the Decimal in the default format.

Remarks

If format is null or an empty string, value is formatted as if the string general ("G") format were specified. The numeric format information is obtained from the current locale. (For addition information on current cultures, see CultureInfo.)

See Also

Decimal Structure | Decimal Members | System Namespace | Decimal.Format Overload List