1.

How Will You Format A Number Upto 3 Decimal Places In Vbscript?

Answer»

Using FormatNumber function, which would return an EXPRESSION formatted as a number.

Example:

Dim NUM : num = -645.998651<BR>document.write(FormatNumber(num, 3))& "&LT;br/>" '-645.999

Using FormatNumber function, which would return an expression formatted as a number.

Example:

Dim num : num = -645.998651
document.write(FormatNumber(num, 3))& "<br/>" '-645.999



Discussion

No Comment Found