Round Function Problem

  • Thread starter Anatoly Kurilin
  • Start date
A

Anatoly Kurilin

Hi, the function Round in Microsoft Access returns 66.22 = Round(66.225, 2),
but the same function in Microsoft Excel returns 66.23. I'm really
embarrassed! What number is correct?



Thank in advance,

AK
 
A

Anatoly Kurilin

Dear Allen, thanks for the tip. Is it possible to make Microsoft Excel and
Access Round functions to return the same rounded number?

AK
 
A

Allen Browne

It depends how the number is represented internally.

In Access you can use a fixed-point number (such as Currency) or a scaled
number (such as Decimal) if you want precision, but remember that the
Round() function in Access uses bankers rounding.

In Excel, you typically have less control over the data type (though you
could typecast), so I can't guarantee you the same results. The Round() in
Excel and in Access are quite different. For example, in Excel it works with
a negative number of decimal places (2nd argument), but this won't work at
all in Access.
 

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

Round() 3
Excel Type Rounding 1
Round() Function 2
round function not work property in access 10
Round Function 5
Wrong data type returned from user-defined function 9
Two Qustions 1
Round formula 1

Top