SteveCop2
Programmer
- Apr 10, 2006
- 16
Access is giving me strange results for perfectly straightforward calculations. For example, try the following in the Immediate window of VBA:
1108.91 - 306.38 - 802.53
The answer should be 0 (or 0.00) but is actually 1.13686837721616E-13 (which in non-scientific display is 0.000000000000114.
If the calculation is performed in two stages it is OK:
1108.91 - 306.38 = 802.53
802.53 - 802.53 = 0.00.
So what is going on please? More importantly, how do I stop it happening? I maintain a finance processing system and accuracy is slightly important!
1108.91 - 306.38 - 802.53
The answer should be 0 (or 0.00) but is actually 1.13686837721616E-13 (which in non-scientific display is 0.000000000000114.
If the calculation is performed in two stages it is OK:
1108.91 - 306.38 = 802.53
802.53 - 802.53 = 0.00.
So what is going on please? More importantly, how do I stop it happening? I maintain a finance processing system and accuracy is slightly important!