• zqwzzle@lemmy.ca
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    1 年前

    If you’re doing any work with accounting, or writing test cases with floating point values.

        • Womble@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 年前

          Eh, if you use doubles and you add 0.000314 (just over 0.03 cents) to ten billion dollars you have an error of 1/10000 of a cent, and thats a deliberately perverse transaction. Its not ideal but its not the waiting disaster that using single precision is.

    • Cyborganism@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 年前

      No. I don’t have to remember that.

      I just have to remember the limits and how you can break the system. You don’t have to think about the representation.