This method converts a numeric value to a String that is formatted using the specified number format. The SByte type is not CLS compliant. The CLS-compliant alternative is Byte.
[C#] public static string Format( sbyte value, string format, NumberFormatInfo info ); [C++] public: static String* Format( char value, String* format, NumberFormatInfo* info ); [JScript] public static function Format( value : SByte, format : String, info : NumberFormatInfo ) : String;
[Visual Basic] The SByte type cannot be used in Visual Basic.
Returns a string representation of value in the format specified by format.
If format is null or an empty string, value is formatted as if the general format ("G") string were specified.
The info parameters specifies the NumberFormatInfo instance used to format the number. If info is null, the numeric format information is obtained from the current locale (see CurrentCulture for more information on current locales).
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.
SByte Structure | SByte Members | System Namespace | SByte.Format Overload List | CultureInfo