|
|
Re: Why does 0.8 = 0.80000001 ? [message #31955 is a reply to message #31899] |
Wed, 28 August 2002 17:35  |
condor
Messages: 35 Registered: January 2002
|
Member |
|
|
Benjamin Panter <benpanterREMOVE@bigfoot.com> wrote in message news:<3D6A306A.BF422364@bigfoot.com>...
> I had it in my head that it was 12 sig fig with an internal mantissa of 14,
> as I mentioned I wasn't overly paniced about it, more interested in finding
> out what was going on. Glad to get that cleared up!
It is actually about 15 significant figures:
help,str1
STR1 DOUBLE = Array[17]
str1[6] = 0.8 ; the original example
print,str1[6]
0.80000001
str1[6] = 0.8d0 ; the correct way
print,str1[6]
0.80000000
...
|
|
|