Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding Numbers 1

Status
Not open for further replies.

aojonesoa

Technical User
Apr 25, 2001
40
US
I'm trying to fix a number to 2 decimal places even if the calculated value ends in zero. How do you do that in VBScript?
Thx:)
 
You could also use:

formatnumber(number,2)

where number is your variable and 2 is the number of decimal places. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top