IneededAnAccountToDoStuff / MathEval

It's a safe math parser for Python & Javascript. Nothing more*.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Bug with ^-n #6

Open IneededAnAccountToDoStuff opened 1 month ago

IneededAnAccountToDoStuff commented 1 month ago

What inputting scientific notation numbers, I discovered that attempting to raise to a negative power without parenthesis, it'd crash. This is because powers are handled before negation, so that -4^3 works. This ought to be fixed.

IneededAnAccountToDoStuff commented 1 month ago

Not sure what the proper general behaviour pattern should be. It's not obvious to me how this should work.