BorysLevytskyi / BitwiseCmd

Bitwise Calculator Online
http://bitwisecmd.com
GNU Affero General Public License v3.0
315 stars 14 forks source link

Add correct precedence #9

Closed chrisdreams13 closed 6 years ago

chrisdreams13 commented 6 years ago
I entered this to your page and show me an incorrect value with the expression: 4 5<<1^8&9 your page shows me a zero, while the result is 6 because you need calculate in this order: << & ^
BorysLevytskyi commented 6 years ago

Hey, Chris. Thanks for your input and sorry for the late reply. This tool uses javascript's eval() to calculate expressions. So the order is dictated by the javascript engine of your browser. For the sake of simplicity, I do not intend to change that any time soon. Closing this issue as By Design.