Fix for bug #3661.
authorKonrad M. Kruczynski <kkruczynski@antmicro.com>
Sun, 11 Mar 2012 12:04:43 +0000 (13:04 +0100)
committerKonrad M. Kruczynski <kkruczynski@antmicro.com>
Sun, 11 Mar 2012 12:04:43 +0000 (13:04 +0100)
commit99d6e93a71d3c6a1c10c5dc786cee2019145e5b2
tree140ed25bfc82fed0f3a717fbab4231ccc39507f5
parent311616efa5b5c96ba7e9e376f5b9cd3184328a5a
Fix for bug #3661.

Before this fix midpoint rounding mode was lost in case digits = 0.
Now this case is checked on the managed side and Round2 is only
used for digits > 0.
mcs/class/corlib/System/Math.cs
mcs/class/corlib/Test/System/MathTest.cs
mono/metadata/sysmath.c