Round decimal number in calculated fields

R

rama

Hello
I am looking for some help to make a rounding adjustment in the
calculated fields in my query. What I wish to do is to round the
decimal numbers like this: >0.01 to <0.24 to 0.0, >=0.25 to <0.74 to
0.5 and >=0.75 to <1 to 1. Thanks in advance.
Rama
 
J

John W. Vinson

Hello
I am looking for some help to make a rounding adjustment in the
calculated fields in my query. What I wish to do is to round the
decimal numbers like this: >0.01 to <0.24 to 0.0, >=0.25 to <0.74 to
0.5 and >=0.75 to <1 to 1. Thanks in advance.
Rama

Double the number and round to zero decimals, then divide:

Round(2.*<your expression>, 0) / 2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top