Rounding to nearest .25 in calculated result

D

Dennis Doll

Hi,

I'm trying to round a sum in a report to the nearest
quarter, or .25. I suspect there's some easy language for
this, but it escapes me. Any help?

Thanks in advance,

Dennis
 
S

Steve Schapel

Dennis,

Does this do what you want?...

=Int([YourField] * 4 + 0.5) / 4

- Steve Schapel, Microsoft Access MVP
 
D

Dennis

I think so!
I actually worked it out similarly like this:
=Int(([MyField]+.125) * 4) / 4

which is the same thing, only less elegant.

Thanks,

Dennis
-----Original Message-----
Dennis,

Does this do what you want?...

=Int([YourField] * 4 + 0.5) / 4

- Steve Schapel, Microsoft Access MVP


Hi,

I'm trying to round a sum in a report to the nearest
quarter, or .25. I suspect there's some easy language for
this, but it escapes me. Any help?

Thanks in advance,

Dennis

.
 

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