NumberFormatInfo: Format

Format

Format a numeric value with the proper formatting applied to the value type. Bytes, Integer, and Longs are formatted as Longs. singles and Doubles are formatted individually.

 Public Function Format(
	  ByRef Value As Variant,
	  Optional ByRef fmt As String ) As String

Parameters

Value
[ByRef] Variant. The numeric value to be formatte to the string representation.
fmt
[ByRef] Optional. String. The formatting to perform on the value.

Return Values

String -  The formatted value as a string.

Remarks

See Also

Project VBCorLib Overview | Class NumberFormatInfo Overview