Oct 23, 2001 #1 Petchy MIS Jan 29, 2001 6 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 Apr 24, 2001 179 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 Aug 29, 2001 42 SI Another option just crossed my mind: iif([field1]<0;fix([field1]);-fix(-[field1]) +1) ElGuapo Upvote 0 Downvote