I have a very strange problem which is occurring on only one pc out of my many customers. I have tracked it down to the the Math.Round
method.
On this brand new win7 pc Math.Round(1.59999,2)
returns 1.59
!
It should be 1.6
and it is in all other cases.
I understand the quirks of Math.Round
with regard to bankers rounding and I'm also aware of the various midpointrounding options in the overloads, but in any case 1.59999
should certainly always be 1.6
.
We have tried repairing the .NET Framework (3.5 sp1) on the PC and doing a full virus scan. What could be the cause of this behavior and how might I further investigate the problem.