[Mono-list] double trouble

Derek Holden dsh2120@draper.com
Fri, 22 Feb 2002 10:05:25 -0500


The ECMA Specification lists System.Double's Max & Min values as what we 
have set in our Double.cs.

[From /Library/Set 2/Double.pdf]
1  Double.MaxValue Field
2  Summary
3  Contains the maximum positive value for the Double type.
4    [C#]
5    public const double MaxValue;
6  Description
7  The value of this constant is 1.7976931348623157E+308.
8

I see in the link you posted they list a rounded off value which is 
technically out of range.

At 2/22/2002 09:38 AM, Bob Doan wrote:
>Last night I was starting another test case for System.Double when I
>noticed something strange.
>
>Double.MinValue & MaxValue are supposed to be (-) 1.79769313486232e308.
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdoubleclassmaxvaluetopic.asp
>
>However, if I try to assign a double that value it my code will not
>compile, saying the number is out of range.  I noticed that in the
>actual System.Double code the number is smaller then what I see it
>should be from MS........
>
>Any ideas anyone?
>
>Thanks!
>
>- Bob
>
>
>
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list