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)
|
 |

|