Unofficial Hacker News companion — get notified on comment replies, and more.

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] (opens external site)

102 points by xenophonf 4 days ago | www.johngustafson.net | 38 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. Maxpos is 0111111, negative maxpos is 1000001. Bit pattern 1000000 used to be infinity but is now "not a real" (I had forgotten the change when I made the previous comment). Combining infinity with NaN means it's even less sneaky than in IEEE, because dividing by it won't give you zero.

    Edit: I guess if you saturate and later divide you might escape maxpos without ever hitting infinity/NaR but that risk doesn't seem significantly worse than standard floating point, just different.

    Replies (1)
    1. Ah wait, you are correct, I misinterpreted the paper. maxpos and infinity are indeed distinct, my bad.