Sunday, February 12, 2023

❇ Order of Numeric Operations 🆕 Negative Exponents

Order of Numeric Operations

Was:

  • Innermost operations between parentheses
  • Exponentiation
  • Negation
  • Multiplication, Division
  • Integer Division
  • Modulo
  • Addition and Subtraction

Now is:

  • Innermost operations between parentheses
  • Exponentiation
  • Negation
  • Multiplication, Division, Integer Division, Modulo
  • Addition and Subtraction


Negative Exponents

Negative exponents (for example: 5 ^ -2) would cause a program to abort with an error.

Now, BASIC Anywhere Machine knows how to handle negation of the exponent.





No comments:

Post a Comment

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...