• janAkali@lemmy.one
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    1 year ago

    Most languages have decimal libraries to correctly handle floating point arithmetics, where precision is necessary.

    • Slotos@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      They are as incapable of handling one third of a dollar as binary positional notation is incapable of handling one fifth (0.2).

      It’s not really a float problem. It’s a positional notation one. Some perfectly rational numbers refuse to squeeze into that mold.