‹ BackHN Continuity

Thread

More floating point alternatives

53 points · 51 comments · vismit2000

  1. ashton314 · · focus · HN ↗
    Also of interest: Herbie analyzes your math expressions and helps you figure out where FP error accumulates. <a href="https:&#x2F;&#x2F;herbie.uwplse.org&#x2F;demo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;herbie.uwplse.org&#x2F;demo&#x2F;

    We use floats as a trade-off between speed and accuracy. IEEE 754 is a very reasonable trade-off for a wide range of applications, but if you can figure out where you need to trade speed to get more accuracy with e.g. one of the methods mentioned here, Herbie&#x27;s gotcha covered.

    I remember seeing some research about switching between formats, but I don&#x27;t have anything to cite right now.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.