Re-enable the Decimal(double) constructor that uses our direct transformation
authorMiguel de Icaza <miguel@gnome.org>
Wed, 16 Mar 2011 05:51:19 +0000 (01:51 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 16 Mar 2011 05:53:23 +0000 (01:53 -0400)
commit31c068ca9e55cedfd963f0a65eb1ad30234a96ef
tree3efd00e0504a49be8f612da94755b3778cba32df
parenta0406b668add4716dc0b9491a7cc5b5822287b15
Re-enable the Decimal(double) constructor that uses our direct transformation
from a double into a decimal.

This is too good to be true.   The only change was to set the rounding bit in the
call to rescale the results.

This should fix bug #584736, and hopefully does not regress anythign else.   The
decimal test suite in corlib passes.
mcs/class/corlib/System/Decimal.cs
mono/metadata/decimal.c