I'm doing some
testing, and for my test data need to work out the various boundaries of double values...
I've worked out that any smaller value than
0.0000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000001
...will throw a compile error. Seems fair enough really
However, when I put in a number 0.9999999...and so on... however many digits I add to the end - I never get an error. Also, when I print this stored in a double to screen - it rounds it up to 1!!
Can anyone help me and explain this behaviour?
Thanks
Adam
[I inserted some line breaks so the other posts wouldn't be horribly distorted - Jim]
[ April 06, 2005: Message edited by: Jim Yingst ]