Accuracy issue (presumably) with low numbers

willow-mouse

New Member
Joined
Aug 25, 2010
Messages
17
My colleague encountered a strange issue with a simple sum:
22.05
-7.05
661.00
-232.00
-20.75
6.20
-427.85
-1.60
Sum:
-3.41949E-14

<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
If you reorder any of these it fixes it to zero sum:

-427.85661.00-1.6022.05
-232.0022.05-7.05-7.05
-20.756.20661.00661.00
-7.05-1.60-232.00-232.00
-1.60-7.05-20.75-20.75
6.20-20.756.206.20
22.05-232.00-427.85-1.60
661.00-427.8522.05-427.85
Sum:Sum:Sum:Sum:
0000

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>


How is this happening with such simple maths?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Last edited:
Upvote 0
Hi all (and apologies for the duplicate post - couldn't see this one after I posted so assumed it had not worked).

I'd assumed a floating point issue, but the reasons that were given on the MS help site wer for very small/large numbers, which these are not. They're all static numbers, so threw up an interesting question.

Thanks for the help!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,877
Members
449,130
Latest member
lolasmith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top