‹ BackHN Continuity

Thread

More floating point alternatives

53 points · 51 comments · vismit2000

  1. AlotOfReading · · focus · HN ↗
    Usually, if you know enough about your algorithms to select an appropriate float alternative, you also know enough to fix your float code and that's what you should actually do.

    That said, some of these aren't alternatives. Symbolic computation is a different thing entirely. Interval arithmetic can be built atop floats (e.g. IEEE-1788) and has its own zoo of unintuitive behaviors. BCD is better called a historical artifact than an alternative these days.

    It's really just rationals and decimal floats in this list, which probably don't solve the issues you have if you're considering float alternatives.

    1. lelanthran · · focus · HN ↗
      > BCD is better called a historical artifact than an alternative these days.

      It's currently in use all over the world. You can't do a card payment, either in-person or online, without an intermediary using ISO8583.

      1. kjs3 · · focus · HN ↗
        I think people with certain backgrounds look at stuff like x86 BCD opcodes being removed in the move from x86-32 to amd64 and think "must be because noone uses it". Other backgrounds know that ain't so.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.