It's for a dollar amount and I just want to round to the whole dollar. Is
there a simple expression I can use?
> It's for a dollar amount and I just want to round to the whole
> dollar. Is there a simple expression I can use?
OK how about this question
$1.00 = 1
$1.01 = ?? $1 or $2
$1.49 = ?? $1 or $2
$1.50 = ?? $1 or $2
$1.51 = ?? $1 or $2
$1.99 = ?? $1 or $2
Those answers are all correct depending on the rounding you want.
>>> Is there any simple way to round?
>>
[quoted text clipped - 4 lines]
>>
>> Dia 's Muire duit

Signature
Joseph Meehan
Dia 's Muire duit
arista - 16 Mar 2007 22:15 GMT
Hi
some time ago I had little bit different problem also asociated to rounding
and this page I found very interesting :
http://ewbi.blogs.com/develops/2003/11/vba_round_yet_a.html
Good luck as you might need it !
pgarcia - 22 Mar 2007 18:02 GMT
It should be something like:
$1.50 = $1
$1.51= $2
> > It's for a dollar amount and I just want to round to the whole
> > dollar. Is there a simple expression I can use?
[quoted text clipped - 23 lines]
> >>
> >> Dia 's Muire duit
Joseph Meehan - 30 Mar 2007 15:22 GMT
> It should be something like:
> $1.50 = $1
> $1.51= $2
That is called banker's rounding
http://en.wikipedia.org/wiki/Rounding
Additional information on Rounding in Access can be found at:
http://ewbi.blogs.com/develops/2003/11/vba_round_yet_a.html
>>> It's for a dollar amount and I just want to round to the whole
>>> dollar. Is there a simple expression I can use?
[quoted text clipped - 28 lines]
>>
>> Dia 's Muire duit

Signature
Joseph Meehan
Dia 's Muire duit
Douglas J. Steele - 30 Mar 2007 15:31 GMT
<quibble>
That's not Banker's Rounding. Banker's Rounding always rounds .5 to the
closest even value. In other words, it would round both $1.50 and $2.50 to
$2.
</quibble>

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
>> It should be something like:
>> $1.50 = $1
[quoted text clipped - 40 lines]
>>>
>>> Dia 's Muire duit
Joseph Meehan - 30 Mar 2007 20:31 GMT
> <quibble>
> That's not Banker's Rounding. Banker's Rounding always rounds .5 to
> the closest even value. In other words, it would round both $1.50 and
> $2.50 to $2.
> </quibble>
Now that I think about it, you are right. I have been out of the
business too long. (Thank God)
>>> It should be something like:
>>> $1.50 = $1
[quoted text clipped - 45 lines]
>>
>> Dia 's Muire duit

Signature
Joseph Meehan
Dia 's Muire duit