raj457036 / Simple-Tools

This repo contains simple tools like clock, Calculator, etc.
https://raj457036.github.io/Simple-Tools/
34 stars 11 forks source link

Cannot evaluate for power operator (^) #15

Closed Kunwar-Yuvraj closed 4 months ago

Kunwar-Yuvraj commented 8 months ago

1^1 should be 1. If you treat '^' as power operator, but its coming 0, so maybe it is XOR operator. But change it to power operator.

raj457036 commented 4 months ago

thanks for finding it out. it has been patched though for some complex expressions with Multiple exponents is currently returning wrong result in Prefix Evaluator #17