Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

FormatNumber

The Format Number function will format a number according the regional settings of the local machine. This may include inserting digit separators (,) and padding the value with zeros where necessary.

Remember that once you call FormatNumber, the function returns a character string that is easy for a human to read. You should not use this formatted number for doing numeric calculations or storing in a database.

Dim nValue
nValue = 1232412.341245
Response.Write "FormatNumber = " & FormatNumber(nValue)

' you may specify how many digits to show after the decimal Response.Write "FormatNumber = " & FormatNumber(nValue, 4)

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"With time and patience the mulberry leaf becomes a silk gown." - Chinese Proverb

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.