[Mono-bugs] [Bug 48788][Wis] New - System.Math.Abs()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Sep 2003 15:01:13 -0400 (EDT)


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 davejp@volny.cz.

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

--- shadow/48788	2003-09-23 15:01:13.000000000 -0400
+++ shadow/48788.tmp.18769	2003-09-23 15:01:13.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 48788
+Product: Mono/Class Libraries
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davejp@volny.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Math.Abs()
+
+public static int Abs(int value)
+{
+    if (value == Int32.MinValue)
+        throw new OverflowException (Locale.GetText (Locale.GetText 
+("Value is too small")));
+    return (value < 0)? -value: value;
+}
+
+I think Locale.GetText() should not be applied twice.
+Could anyone with acces fix it.
+thanks David