An unofficial, read-only Hacker News reader.

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

53 points by xenophonf 4 hours ago | www.johngustafson.net | 17 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. Worth noting that while these may be smaller than equivalent floats for many values (and indeed, for some applications a 32-bit posit could replace a 64-bit double), they lose precision far more rapidly at larger values, they lack NaN and Infinity entirely, and saturation can silently create enormously incorrect results. Also, attempts at creating hardware implementations have found them far more difficult and bulky than for floats, partly because of all the variable-length shenanigans.

    Still, it's quite nice to see yet another option for representing magnitudes in programming. Given the right domain, these could show many benefits indeed.