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

🖥 Flower Tesselation: Testing DRAW and recursive SUB's

This BAM program inspired by Richard Russell's "Flower-like tesselation" BBC BASIC program posted on Facebook . Created in ord...