Re: atom = problem?

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

CChris wrote:
> 
> You shouldn't use string conversion to compare atoms, because of the limited
> precision of floating point numbers in hardware.
> Use atom_to_float64() in machine.e instead to obtain a sequence of 8 bytes,
> which is the internal representation of the number. Then comparing these
> sequences of equal length becomes unambiguous.

Actually, as long as you use scientific notation, it uses the full precision
available to 64-bit floating point.  We should probably get there will all
floating point.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu