[Mono-bugs] [Bug 557689] System.Math::Round gives incorrect results
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 24 05:42:32 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=557689
http://bugzilla.novell.com/show_bug.cgi?id=557689#c2
--- Comment #2 from Jerome Lambourg <lambourg at adacore.com> 2009-11-24 10:42:31 UTC ---
OK, further tests show that the above patch is not working either:
System.Math::Round (double, int32, MidpointRounding) seems to always round to
even (another bug btwm but related).
ldc.r8 float64(0x3FE0000000000000) // load 0,5
ldc.i4.0 // round with 0 decimals
ldc.i4.1 // away from 0
call float64 class [mscorlib]System.Math::Round (float64, int32,
valuetype [mscorlib]System.MidpointRounding)
gives 0, should be 1
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list