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

Rounding of number 1

Status
Not open for further replies.

drewduncan

Programmer
Apr 3, 2003
38
0
0
GB
Hey hope someone can help me!!

Does anyone know of any way to round ALL decimal numbers up to the nxt whole number - e.g 1.1 would be rounded to 2, 2.4 would be rounded to 3 and so on.

Ive looked at the help pages for a while but had no joy.

Any feedback would be great

Cheers

Drew.
 
This will to

Int([FieldName]) +1

Both expression will work for positive and negative numbers.

Paul
 
Excellent Paul works good.

Always is something simple n you try to make it harder than it is!!!

Cheers for the help

Drew
 
Well I learned the first one years ago but when I was thinking about it, it seemed odd I never thought of the second one. But then Dan showed me why it doesn't work. Well, I guess I'll keep the first one in my bag and give the second one the boot. Thanks for picking that up Dan.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top