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

rounding down a decimal 1

Status
Not open for further replies.

orangeblue

Programmer
Nov 26, 2002
107
GB
Hi
Say if I have 4.98 and if i use round() it rounds to 5 but I want the number to round down to 4.

How can I do this?
many thanks
Hesh
 
Hesh
Do you always want the rounding to go to the lower whole number? If so use the Integer (Int) function rather than Round().

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top