[Mono-bugs] [Bug 79414][Maj] Changed - float and double do not multiply properly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 17 08:30:22 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz at gmail.com.


--- shadow/79414	2006-09-15 18:21:09.000000000 -0400
+++ shadow/79414.tmp.25598	2006-09-17 08:30:22.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 79414
 Product: Mono: Runtime
 Version: 1.1
 OS: GNU/Linux [Other]
 OS Details: Gentoo 2.6.15
-Status: NEW   
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Major
 Component: misc
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: ximian.bugzilla at analogcoast.com               
 QAContact: mono-bugs at ximian.com
@@ -73,6 +73,12 @@
 How often does this happen? Every time. 
 Additional Information: This also affects double type.
 ------- Additional Comments From ximian.bugzilla at analogcoast.com  2006-09-15 18:21 -------
 the example code works properly with decimal type
+------- Additional Comments From vargaz at gmail.com  2006-09-17 08:30 -------
+This isn't a bug, but rather a property of floating point arithmetic.
+MS.NET behaves exactly the same way. 
+Try writing (int)(d * 100) == i to get more predictable results.

More information about the mono-bugs mailing list