Re: Very weird numeric values
- From: "K90267000 via AccessMonster.com" <u32982@uwe>
- Date: Sun, 06 May 2007 02:59:34 GMT
Thanks! Thanks! Thanks! Thanks! Thanks!
Problem solved, i would NEVER figured that out myself as i am a self-taught
newbie..
This rocks!
Thanks Ken.
Ken Snell (MVP) wrote:
Because computers don't handle non-integer numbers precisely. A number with
the value 2.8421709430404E-14 essentially is zero, but because computers
slightly round numbers when storing them, zero minus zero minus zero minus
zero can add up to a very tiny difference, hence the value you see.
(I note that you're missing the second argument for the Nz function that is
wrapped around [b] value.)
If you're dealing with currency values, for example, recast the numbers in
the expression using the CCur function; that should eliminate the problems:
Balance:
CCur(Nz([a],0))+CCur(Nz([b],0))-CCur(Nz([c],0))-CCur(Nz([d],0))-CCur(Nz([e],0))-CCur(Nz([f],0))
One of my expression ("balance") in a query is:[quoted text clipped - 11 lines]
Thanks in advanced.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-gettingstarted/200705/1
.
- Follow-Ups:
- Re: Very weird numeric values
- From: Ken Snell \(MVP\)
- Re: Very weird numeric values
- References:
- Very weird numeric values
- From: K90267000 via AccessMonster.com
- Re: Very weird numeric values
- From: Ken Snell \(MVP\)
- Very weird numeric values
- Prev by Date: Re: help me choose when a parameter is applied
- Next by Date: Re: Very weird numeric values
- Previous by thread: Re: Very weird numeric values
- Next by thread: Re: Very weird numeric values
- Index(es):
Relevant Pages
|