When is round-trip floating point radix conversion exact?
( go to the article → https://www.johndcook.com/blog/2020/03/16/round-trip-radix-conversion/ )
Suppose you store a floating point number in memory, print it out in human-readable base 10, and read it back in. When can the original number be recovered exactly? D. W. Matula answered this question more generally in 1968 . Suppose we start with base β with p places of precision and convert to base […]
March 16, 2020, 11:20 p.m.