[Mono-list] Can there be a problem with System.Math.Max?
Maser, Dan
Dan.Maser at inin.com
Tue Jul 3 12:25:50 EDT 2007
I updated to the latest SVN code this morning and noticed that the
following code
int a = 100;
int b = -2147483647;
System.Console.WriteLine(String.Format("Math.Max(a, b) is {0}",
Math.Max(a, b)));
Prints -2147483647 when I'd expect it to print 100. Looking at the
source code to Math.Max in class/corelib/System/Math.cs I don't see any
problem, though. Can someone else verify this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/920cb651/attachment.html
More information about the Mono-list
mailing list