Have you performed simple arithmetic operations like 0.1 + 0.2? You might have gotten something strange: 0.1 + 0.2 = 0.30000000000000004.

  • karlhungus
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    7 hours ago

    Ugh, i thought this was a question, not a link. So i spent time googling for a good tutorial on floats (because I didn’t click the link)…

    Now i hate myself, and this post.

    • thingsiplay@beehaw.org
      link
      fedilink
      arrow-up
      5
      ·
      6 hours ago

      Don’t hate yourself. At least you searched it properly. See it this way, you learned from a failure more than anyone who did not fail. You are now stronger!