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 a number

Status
Not open for further replies.

CharlieMike73

Programmer
May 17, 2002
120
US
Hi, I have a number that i need to round off to two decimal places - turn to currancy format, to be displayed on a webpage.

I want to do something like multiply by 100 round the number to a whole number then divide by 100 to make it two decimal places...

but what commands do I use, I am not a VB programmer and have used it very little.

Thank you to anyone who can help!
 
why not use
FormatCurrency(10.2333333) 'returns 10.23 [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Well there you go - Thnx, never even knew about that function =o)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top