• wischi@programming.dev
    link
    fedilink
    arrow-up
    62
    ·
    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.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 day 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.

    • BleatingZombie@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 day 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