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

round the decimals up

Status
Not open for further replies.

omerdurdu

Programmer
Jul 21, 2001
72
TR
I wonder how can I round the decimal up.
Lets say I have something like 1.025, I would like to round this number up like 1.03 or 1.022 round this number just down 1.02.
Is there anyway to do this.
Thanks
 
Thanks for replying
Ceiling(1.025) = 2
It is taking closest integer
I am looking for something: it will give me to decimals and the decimal will round up like this:

1.025 will be 1.03
1.022 will be 1.02
1.455555 will be 1.46

Thanks
 
NumberFormat does that automatically (rather annoying, actually, when you don't want it to)

Code:
#NumberFormat(mynum,"_____.__")#
Hope it helps,
-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top