Re: Trying to use gdb on OS X
- Posted by jimcbrown (admin) Jun 11, 2013
- 3078 views
The number stored in a double doesn't necessarily fit into a 64-bit integer. Remember, part of the double precision floating point value is an exponent.
Yes, I know this, and I thought that I had addressed it a couple of times unless I'm missing some other point.
Currently 32-bit Euphoria has 29-bit integers, and it can perform bitwise operations on integers up to 32 bits in size. Bitwise operations on integers larger than 32 bits produce incorrect results.
Integers which are between 30 and 32 bits in size are stored as doubles.
It's 31-bit. (Actually, it's 4 separate integer types, each which holds 29-bit values, but which when counted together map up to a full 31 unique bits. Roughly speaking, it's like we have one integer type to represent all positive integers and another to represent all negative integers, or something.)
Only 32bit values should need to be stored as doubles.