How to use arithmetic rounding in Access

B

Boon

How to use arithmetic rouding in Access? so that the result is the same when
doing round() in Excel.

Thanks,
Boon
 
K

Kipp Woodard

Round(expression [,numdecimalplaces])

Select Round(MyNumberColum, 2) From MyTable.
 
J

John Spencer

In Access Round uses Banker's rounding. It rounds up or down to the nearest
even number if the last position is a 5.

Round(1.125,2) = 1.12
Round(1.115,2) = 1.12

Excel rounds those to 1.13 and 1.12 respectively.

There are various VBA functions that attempt to duplicate the EXCEL method of
rounding. Here is one (although the author claims it rounds negative numbers
incorrectly).

http://www.comeandread.com/access/tip006.htm

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

Kipp said:
Round(expression [,numdecimalplaces])

Select Round(MyNumberColum, 2) From MyTable.

Boon said:
How to use arithmetic rouding in Access? so that the result is the same when
doing round() in Excel.

Thanks,
Boon
 

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
incorrect Rounding MsAccess 2003 3
Rounding Trick 1
Round to 100 3
function that equivalent to vlookup in Excel 1
rounding to closest 15 minute increment 1
binary arithmetic in excel 1
Rounding 3

Top