Converts a numeric value to a String with specified format string.
[Visual Basic] Overloads Public Shared Function Format( _ ByVal value As Single, _ ByVal format As String _ ) As String [C#] public static string Format( float value, string format ); [C++] public: static String* Format( float value, String* format ); [JScript] public static function Format( value : float, format : String ) : String;
Returns 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 general format ("G") were specified.
The numeric format information is obtained from the current locale (in addition see CurrentCulture).
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).
Single Structure | Single Members | System Namespace | Single.Format Overload List | CultureInfo | NumberFormatInfo | String