A simple command line calculator
Posted 14 years ago
How many times have you needed to calculate something, for example the value of 0x398A3BB, so you pop up windows calculator to convert it? I did lots of times. The problem is I hate to use the mouse. It takes precious deciseconds away from software development time to remove my hands from the keyboard and use the mouse. That's why I created calc.exe. Its a simple command line calculator (and its also an example of recursive decent parsing).
C:>calc 5+5*5 30.000000 c:>calc 0x30 48.000000 c:>calc (123456 % 51)/12 3.000000