Oct 5, 2002 #1 emikoo Technical User Jul 12, 2002 37 NL Hi, Is there an easy way to round the values in a MS2000 Access query to quarters (x.25, x.50, x.75 or x.00). Example: 3.17 = 3.00 3.18 = 3.25 3.37 = 3.25 3.38 = 3.50 3.62 = 3.50 3.63 = 3.75 3.87 = 3.75 3.88 = 4.00 Thnxs in advance, EK
Hi, Is there an easy way to round the values in a MS2000 Access query to quarters (x.25, x.50, x.75 or x.00). Example: 3.17 = 3.00 3.18 = 3.25 3.37 = 3.25 3.38 = 3.50 3.62 = 3.50 3.63 = 3.75 3.87 = 3.75 3.88 = 4.00 Thnxs in advance, EK
Oct 5, 2002 #2 r937 Technical User Jun 30, 2002 8,847 CA it's easy multiply by 4 and round up to nearest integer, then divide by four point oh oh select int(val*4+0.5)/4.00 from yourtable by the way, your first example, 3.17, rounds to 3.25 -- i think you were thinking of 3.12 rudy http://rudy.ca/ Upvote 0 Downvote
it's easy multiply by 4 and round up to nearest integer, then divide by four point oh oh select int(val*4+0.5)/4.00 from yourtable by the way, your first example, 3.17, rounds to 3.25 -- i think you were thinking of 3.12 rudy http://rudy.ca/
Oct 6, 2002 Thread starter #3 emikoo Technical User Jul 12, 2002 37 NL Rudy, Thank you. After I posted it, had the same idea: Round(value*4,0)/4.00 Thank you for your help. EK Upvote 0 Downvote
Rudy, Thank you. After I posted it, had the same idea: Round(value*4,0)/4.00 Thank you for your help. EK