• 0 Posts
  • 2 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle

  • 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.