• wischi@programming.dev
    link
    fedilink
    arrow-up
    59
    ·
    2 days ago

    0/0 is undefined because everything would be a valid result. 0/0 is basically finding solutions for 0*x=0 and everything you put into x would satisfy the equation.

    • BleatingZombie@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      Thank you! I’ve always wondered what the answer would be and why. 0 divided by a number is 0. A number divided by itself is 1. A number divided by 0 is undefined. I never knew which one took precedence and why

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 days ago

      This doesn’t clearly identify a problem IMO. Division by a number is defined as multiplication by the multiplicative inverse, and 0 has no multiplicative inverse because 0x = 1 has no solutions.