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

  • @andnekon
    link
    36 hours ago

    Now try opening js interpreter and doing the same.

    Also, try 0.1+0.2 in python interpreter.

    • @[email protected]
      link
      fedilink
      English
      15 hours 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