[Mono-bugs] [Bug 56005][Min] Changed - Mono Convert.ToSingle(double) throws exception, .NET doesn't

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Mar 2004 09:12:55 -0500 (EST)


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 reali@acm.org.

http://bugzilla.ximian.com/show_bug.cgi?id=56005

--- shadow/56005	2004-03-24 14:05:23.000000000 -0500
+++ shadow/56005.tmp.25057	2004-03-29 09:12:55.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: SuSE 8.1
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: reali@acm.org               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -19,6 +19,11 @@
 Convert.ToSingle(double) throws an exception for values that are greater 
 than Float.MaxValue or smaller than Float.MinValue.
 
 Although this makes sense, Microsoft's .NET Framework doesn't throw the 
 exception here, but does just a (float)value. MSDN documentation mentions 
 no exception.
+
+------- Additional Comments From reali@acm.org  2004-03-29 09:12 -------
+Even if the compatibility with .NET doesn't matter, there is another 
+problem or bug in the conversion: infinity and NaN should be 
+converted from double to single without exception!