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

🖥A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...