• @Saledovil@sh.itjust.works
      link
      fedilink
      4
      edit-2
      4 days ago

      If you multiply a negative number with a negative number you get a positive number.

      Edit: Sorry, misread your comment, I clearly didn’t get enough sleep. In printed mathematics, the unary minus sign has a lower precedence than the exponent, but in programming, it’s the other way around, with the unary minus being applied first. So your right in printed mathematics, but wrong in programming.