Oct 23, 2001 #1 Petchy MIS Joined Jan 29, 2001 Messages 6 Location GB I need to run a caluclation based on 1 decimal place and would like to round the value up. What's the best way to do this if at all? Cheers, Craig
I need to run a caluclation based on 1 decimal place and would like to round the value up. What's the best way to do this if at all? Cheers, Craig
Oct 24, 2001 1 #2 paron Instructor Joined Apr 24, 2001 Messages 179 Location US If you just want to round to the nearest .x, then try: (Int([field1]*10)/10) If you really want to round UP to the nearest .x, then try: IIf(Int([field1]*10)=[field1]*10,(Int([field1]*10)/10),(Int([field1]*10+1)/10)) Ron Upvote 0 Downvote
If you just want to round to the nearest .x, then try: (Int([field1]*10)/10) If you really want to round UP to the nearest .x, then try: IIf(Int([field1]*10)=[field1]*10,(Int([field1]*10)/10),(Int([field1]*10+1)/10)) Ron
Oct 24, 2001 2 #3 ElGuapo Programmer Joined Aug 29, 2001 Messages 42 Location SI Another option just crossed my mind: iif([field1]<0;fix([field1]);-fix(-[field1]) +1) ElGuapo Upvote 0 Downvote