Mon, 09 Feb 2004 18:28:34 +0000
I get the same results with csc from MS .NET 1.0.
>From: "Jochen Wezel" <firstname.lastname@example.org>
>Subject: [Mono-list] Maths
>Date: Mon, 9 Feb 2004 19:14:20 +0100
>Has anybody seen that behaviour yet which is produced by MS .Net?
>When rounding doubles to integer, there is a rounding error:
> Console.WriteLine(Convert.ToInt32(1.5)) 'is 2 - should be 2
> Console.WriteLine(Convert.ToInt32(2.5)) 'is 2 - should be 3
>This may be important for those guys who are programming in that area...
Add photos to your e-mail with MSN 8. Get 2 months FREE*.