[Mono-list] double trouble
Dwivedi , Ajay Kumar
AjayKumar.Dwivedi@dresdner-bank.com
Fri, 22 Feb 2002 14:46:09 -0000
1.79769313486232e308 is the rounded off value.
The exact value would be 256^128-1 which bc calulates as
17976931348623159077293051907890247336179769789423065727343008115773\
26758055009631327084773224075360211201138798713933576587897688144166\
22492847430639474124377767893424865485276302219601246094119453082952\
08500576883815068234246288147391311054082723716335051068458629823994\
7245938479716304835356329624224137215
Happy Hacking,
Ajay
-----Original Message-----
From: Bob Doan [mailto:bdoan@sicompos.com]
Sent: 22 February 2002 20:08
To: mono-list@ximian.com
Subject: [Mono-list] double trouble
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