Round function

S

Suresh

The round function does not round the value 00.50
In maths round function should round values from .50 and
above.
If there is another function or another way of rounding
please let me know.

Thank you.
 
A

Allen Browne

Floating point maths is always imprecise.

If you want that kind of precision, you will need to use scaled integers
instead. There is a custom rounding function in this link that converts the
value to a Variant of subtype Decimal so it can perform the scaled integer
math:
http://www.mvps.org/access/modules/mdl0054.htm
 

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