DescriptionFormats a numeric value according to a specified format.SyntaxTarget.FormatNumeric(value, format)Parameters
Description
Formats a numeric value according to a specified format.
Syntax
Target.FormatNumeric(value, format)
Parameters
variant value - the numeric value to be formattedstring format - the numeric format to be applied to the value (See numeric formats.)
Return valuestring - a text representation of the numeric value according to the input format.ExampleSample codeDim val, dtdt = CDbl( "4123.26" ) val = UserVar.FormatNumeric( dt, "#,###" ) ' the return value: 4,123val = UserVar.FormatNumeric( dt, "#,###.#" ) ' the return value: 4,123.3val = UserVar.FormatNumeric( dt, "E" ) ' the return value: 4.12326E+003 See alsoPlatform Objects and Methodstarget.FormatDatetarget.GetDateRangeTarget Methods
Return value
string - a text representation of the numeric value according to the input format.
Example
Sample code
Dim val, dtdt = CDbl( "4123.26" ) val = UserVar.FormatNumeric( dt, "#,###" ) ' the return value: 4,123val = UserVar.FormatNumeric( dt, "#,###.#" ) ' the return value: 4,123.3val = UserVar.FormatNumeric( dt, "E" ) ' the return value: 4.12326E+003
See also
Platform Objects and Methodstarget.FormatDatetarget.GetDateRangeTarget Methods