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!

Single.Format (Single, String, NumberFormatInfo)

This method 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 Single, _
   ByVal format As String, _
   ByVal info As NumberFormatInfo _
) As String
[C#]
public static string Format(
   float value,
   string format,
   NumberFormatInfo info
);
[C++]
public: static String* Format(
   float value,
   String* format,
   NumberFormatInfo* info
);
[JScript]
public static function Format(
   value : float,
   format : String,
   info : NumberFormatInfo
) : String;

Parameters

value
The value to be formatted.
format
The format string.
info
The NumberFormatInfo instance used to format the number.

Return Value

A string representation of the number in the specified format.

Remarks

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

Single Structure | Single Members | System Namespace | Single.Format Overload List | NumberFormatInfo | CultureInfo | String