Re: Eu integers [was eternity]
- Posted by Alex Caracatsanis <sunpsych at ncab??.com.au> Jan 26, 2008
- 666 views
Jason Gade wrote: > > Alex Caracatsanis wrote: > > > > egg wrote: > > > > > > Please, free the lost bit for eternity in integers! It is so inconvenient. > > > > Just for my education and interest, what is "the lost bit", and why is it > > "inconvenient"? > > > > Euphoria uses 31-bit integers instead of 32-bit, which effectively cuts the > integer range in half. But it's still approximately +/- 1 billion or so. > > The most significant bit is used as a flag to tell whether the value is an > integer > or a pointer to either an atom or a sequence. > Jason, in Eu is "the most signifiacant bit" the 31st bit or the 32nd bit? Also, how does Eu indicate whether the integer is positive or negative? Thank you Alex Caracatsanis