An actual good calculator
There are like a BAJILLION posts on replit that are "calculators" that go like this:
Please input which operation you would like: Plus, minus, add, or divide
Please input which numbers you would like to add.
I got bored of those, and I made a calculator where you can just straight up input the expression you want to calculate. Works with +,-,*,/,^ for exponent, and parentheses! Not only that it follows order of operations too. It even has decimal capability of 10 places. Also, no eval() function.
The purpose of this post? To make a calculator where you can just enter your math expression instead of printing "Plus, minus, multiply or divide?" without using eval.
also to prove that stacks are useful because basically no posts on replit use stacks
EDIT: Y'all are razzing on me because my calculator doesn't work for super big numbers or if you just input gibberish. But seriously there is a thing called integer limit... sigh
Hi, this is really random but do you do competitive programming? I think I saw it in a comment somewhere
Last year I was like bottom 6000 in Canada lol. But this year I was top 731. And next year, which will be my last year, I'm really hoping to be top 20 to get into the CCO 🙏
EDIT: If you read through that entire paragraph I apologize on behalf of your eyes.