Complete VBScript Reference
The FormatNumber function returns an expression formatted as a number.
| Parameter | Description |
|---|---|
| expression | Required. The expression to be formatted |
| NumDigAfterDec | Optional. Indicates how many places to the right of the decimal are displayed. Default is -1 (the computer's regional settings are used) |
| IncLeadingDig | Optional. Indicates whether or not a leading zero is
displayed for fractional values:
|
| UseParForNegNum | Optional. Indicates whether or not to place negative
values within parentheses:
|
| GroupDig | Optional. Indicates whether or not numbers are grouped
using the group delimiter specified in the computer's regional settings:
|
The output of the code above will be:
Setting number of decimals:
The output of the code above will be:
Fractional values with or without a leading zero:
The output of the code above will be:
Negative values inside parentheses or not:
The output of the code above will be:
Grouping numbers - or not:
The output of the code above will be:
Complete VBScript Reference
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|