Re: poke8 problems : 64-bit numbers in a 53-bit language
- Posted by SDPringle Sep 29, 2015
- 1419 views
I think I have figured it out.
The maximum double value and minimum double value in the header files are not applicable to 32-bit processors. That is MAX_LONGLONG_DBL should not be #FFFF_FFFF_FFFF_FFFF but rather #FFFF_FFFF_FFFF_F800 because of the limits of 64-bit atoms. Loss of precision is one thing but poking a very big value and instead getting zero in memory is another. We should look at the lower bound as well.
Shawn Pringle