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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding Up?

Status
Not open for further replies.

Mug1

Technical User
May 13, 2000
5
US
My little program for a clothing boutique needs to round all math functions UP--I don't need truncating, and the CInt rounds normally (i.e., to the nearest whole number). Can I circumvent this? TIA (again)
 
Adding .5 to the number before using CInt might produce the rounding up effect you're looking for.  
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top