CLI calculator

Oliver Oliver • Published 13 years ago


Legacy Post

This post has been recovered from an alternative blogging platform that I've not used in many years. Some of the content may have been reworded so that it makes sense in the context of this site, however the substance of the content will be unchanged.

Dear friend

I made a command-line calculator in Java!

So far it can parse any non-algebraic equation no matter how long.

It knows PEMDAS (the correct order of operations) which means it will also solve anything inside of brackets first.

2 * 2 + 2 = 6 // no matter how you look at it
2 + 2 * 2 = 6 // if you follow the correct order of operations
(2 + 2) * 2 = 8 // if you follow the correct order of operations

And the calculator can understand that 😃

I shall keep you updated on a download link, it will go [HERE] when there is one, so keep checking (if you're interested) 😃



Comments are not enabled for this post.