• ⲇⲅⲇ@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Gnome is coded with JavaScript (lmao 🤣) so yeah, I Think you are right.

    EDIT: Actually, even if JavaScript and other languages have this issue, the value 1.7518248558044434 has not this issue. There is another reply that explains it and makes totally sense. But still pretty lame to know the desktop runs with JavaScript. (Yeah, I hate Gnome)

    • atzanteol@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It’s not a “language” issue it’s a “computer” issue. This math is being done on the CPU.

      IEEE 754

      Some languages do provide for “arbitrary precision math” (Java’s BigDecimal for example) but it’s slower to do that. Not what you want if you’re multiplying a 4k matrix every millisecond.