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

🖥 Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...