Parameters
- expression
- Required. Expression to be formatted.
- numDigitsAfterDecimal
- Optional. Numeric value indicating how many places are displayed to the right of the decimal. The default value is –1, which indicates that the computer's regional settings are used.
- includeLeadingDigit
- Optional. TriState constant that indicates whether a leading 0 is displayed for fractional values. See "Settings" for values.
- useParensForNegativeNumbers
- Optional. TriState constant that indicates whether to place negative values within parentheses. See "Settings" for values.
- groupDigits
- Optional. TriState constant that indicates whether or not numbers are grouped using the group delimiter specified in the locale settings. See "Settings" for values.
Return Value
Returns an expression formatted as a number.