Re: EDS Autonumber

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> > The only problem i could see is once you hit the highest value possible, =
> you
> > wolud have to wrap around back to 0, and check to make sure you only use
> > unused values.
> 
> Euphoria integers are 31 bits. That's 2,147,483,647 records. Is that
> enough? Atoms are stored as 32-bit long integers. That's 4,294,967,296
> records.

Atoms are *not* stored as 32-bit long integers.
Someone else said the same thing recently,
so I'd better clarify. Atoms are stored (when necessary) as 64-bit
floating-point values. If you are only interested in storing
integer values in an atom, you can have integers up to
about 15 decimal digits (52-bits) without losing any precision.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu