Re: and_bits() behavior
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Jun 27, 2007
- 658 views
Jason Gade wrote: > > Juergen Luethje wrote: > > > > That's OK. > > Run the following code, and maybe then you can solve the riddle yourself. > > > > }}} <eucode> > > include machine.e > > ? int_to_bits(-1, 8) > > </eucode> {{{ > > BTW, I experimented with this today. The highest bit count that I could go to > and still get all ones was 53. At 54 and above, I got all zeroes. I believe that you've hit the precision limit of a double, which is probably the reason for this. Matt