willow-mouse
New Member
- Joined
- Aug 25, 2010
- Messages
- 17
My colleague encountered a strange issue with a simple sum:
[TABLE="width: 173"]
<colgroup><col></colgroup><tbody>[TR]
[TD]22.05[/TD]
[/TR]
[TR]
[TD]-7.05[/TD]
[/TR]
[TR]
[TD]661.00[/TD]
[/TR]
[TR]
[TD]-232.00[/TD]
[/TR]
[TR]
[TD]-20.75[/TD]
[/TR]
[TR]
[TD]6.20[/TD]
[/TR]
[TR]
[TD]-427.85[/TD]
[/TR]
[TR]
[TD]-1.60[/TD]
[/TR]
[TR]
[TD]Sum:[/TD]
[/TR]
[TR]
[TD]-3.41949E-14[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 136"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
If you reorder any of these it fixes it to zero sum:
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 64"]-427.85[/TD]
[TD="class: xl67, width: 64"]661.00[/TD]
[TD="class: xl67, width: 64"]-1.60[/TD]
[TD="class: xl67, width: 64"]22.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]661.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-232.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]-20.75[/TD]
[/TR]
[TR]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]6.20[/TD]
[/TR]
[TR]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]-1.60[/TD]
[/TR]
[TR]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-427.85[/TD]
[/TR]
[TR]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[/TR]
[TR]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0
[/TD]
[/TR]
</tbody>[/TABLE]
How is this happening with such simple maths?
[TABLE="width: 173"]
<colgroup><col></colgroup><tbody>[TR]
[TD]22.05[/TD]
[/TR]
[TR]
[TD]-7.05[/TD]
[/TR]
[TR]
[TD]661.00[/TD]
[/TR]
[TR]
[TD]-232.00[/TD]
[/TR]
[TR]
[TD]-20.75[/TD]
[/TR]
[TR]
[TD]6.20[/TD]
[/TR]
[TR]
[TD]-427.85[/TD]
[/TR]
[TR]
[TD]-1.60[/TD]
[/TR]
[TR]
[TD]Sum:[/TD]
[/TR]
[TR]
[TD]-3.41949E-14[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 136"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
If you reorder any of these it fixes it to zero sum:
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 64"]-427.85[/TD]
[TD="class: xl67, width: 64"]661.00[/TD]
[TD="class: xl67, width: 64"]-1.60[/TD]
[TD="class: xl67, width: 64"]22.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]661.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-232.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]-20.75[/TD]
[/TR]
[TR]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]6.20[/TD]
[/TR]
[TR]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]-1.60[/TD]
[/TR]
[TR]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-427.85[/TD]
[/TR]
[TR]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[/TR]
[TR]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0
[/TD]
[/TR]
</tbody>[/TABLE]
How is this happening with such simple maths?