Rounding up of decimal values

R

Richard

I need to know how to round any figure after a decimal point to even if its
less than 5...

e.g. 2.0433 to 2 decimal place = 2.04

but I want 2.0433 to 2 decimal place = 2.05 instead of 2.04
 
J

John Spencer

This expression should work for positive numbers.

-Int(-SomeNumber * 10^2)/10^2

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 
C

Clifford Bass

Hi Richard,

Oops, missed a decimal place.

round([myfield] + 0.005, 2)

And if you might have negative numbers that you want to round down
instead of up you could try:

sgn([myfield]) * round(abs([myfield]) + 0.005, 2)

Clifford Bass

Clifford Bass said:
Hi Richard,

Try Round([myfield] + .05, 2).

Clifford Bass

Richard said:
I need to know how to round any figure after a decimal point to even if its
less than 5...

e.g. 2.0433 to 2 decimal place = 2.04

but I want 2.0433 to 2 decimal place = 2.05 instead of 2.04
 

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

Similar Threads

Rounding number 15
Formatring numbers to a variable set of decimal places 1
Approximation of Values 1
Implied Decimal Point 3
Rounding Up question 2
Rounding problem 9
Rounding 2 decimal Places 1
Rounding Up 3

Top