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

    • toasteecup@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I’ll pass on the js interpreter. I don’t feel like learning the arcane runes.

      To your point, Python handles those by giving you 0.300000004 might have missed a zero but valid point nonetheless