Value
(Variant) Value to be formatted
Digits After Decimal
[optional](Variant) Numeric value specifies how many places to the right of the decimal are shown. The default value is -1 (means that the computer's regional settings are used).
Leading Digit
[optional](Variant) Constant specifies whether a leading zero is shown for decimal values
-1=vbTrue - show
0=vbFalse - hide
-2=vbUseDefault - use computer default setting
Parens For Negative
[optional](Long) Constant specifies whether to place negative values within parentheses
-1=vbTrue - to place within parentheses
0=vbFalse - not to place within parentheses
-2=vbUseDefault - use computer default setting
Group Digits
[optional](Long) Constant specifies whether numbers are grouped using the group delimiter specified in the control panel
-1=vbTrue - grouped
0=vbFalse - not grouped
-2=vbUseDefault - use computer default setting
Classic ASP FormatNumber Code Sample
<% x = 1.3 y = 1 / Cos(x) NewNumber = FormatNumber(y, 4) ' Format x to 4 decimal places %>