[Mono-list] decimal literals not working?
Jan Olderdissen
jan@olderdissen.com
Sun, 28 Nov 2004 19:11:31 -0800
Hi,
while trying to figure out why test #E05 in ConvertTest.cs is failing, I
discovered that literal decimals appear to be broken. The following code
snippet outputs "123 0 0 0" on a recent svn build, whereas it outputs
"1234 0 0 65536" on 1.0.4 as expected.
class A
{
static void Main (string[] args)
{
decimal x = 123.4m;
int [] bits = Decimal.GetBits (x);
Console.WriteLine ("{0} {1} {2} {3}", bits[0], bits[1],
bits[2], bits[3]);
}
}
Environment:
- Gentoo Linux running 2.4.26 kernel
- glibc 2.3.4
- gcc 3.3.4
- svn source revision 36703
- bootstrap install of mono 1.0.4
Jan