Re: atom = problem?
- Posted by Matt Lewis <matthewwalkerlewis at ?m?il.com> Apr 28, 2008
- 797 views
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