If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to use arithmetic rounding in Access
How to use arithmetic rouding in Access? so that the result is the same when
doing round() in Excel. Thanks, Boon |
#2
|
|||
|
|||
How to use arithmetic rounding in Access
Round(expression [,numdecimalplaces]) Select Round(MyNumberColum, 2) From MyTable. "Boon" wrote: How to use arithmetic rouding in Access? so that the result is the same when doing round() in Excel. Thanks, Boon |
#3
|
|||
|
|||
How to use arithmetic rounding in Access
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 Woodard wrote: Round(expression [,numdecimalplaces]) Select Round(MyNumberColum, 2) From MyTable. "Boon" wrote: How to use arithmetic rouding in Access? so that the result is the same when doing round() in Excel. Thanks, Boon |
Thread Tools | |
Display Modes | |
|
|