3 ms·
Or use bc: https://www.geeksforgeeks.org/bc-command-linux-examples/amp/ https://www.geeksforgeeks.org/bc-command-linux-examples/amp/
by tomcam 4y ago
Or use bc:
https://www.geeksforgeeks.org/bc-command-linux-examples/amp/ https://www.geeksforgeeks.org/bc-command-linux-examples/amp/
- senko 4y agoBC is actually super useful when in the shell (less fuss than firing up python shell or similar). I use(d) it a lot, though didn't dig deep into what it can do, beyond setting `scale=2` (set output to two decimal places) when dealing with currencies etc. If I'm elsewhere in GUI tho, Meta+C (shortcut I have for the calculator app) is faster than firing off terminal, starting bc, then closing it up after oneline calculation. .. at least, it should be faster ;-)
- ghoward 4y agoMaybe you can change Meta+C to start the terminal with bc already running? ;-) Disclaimer: bc implementer. I'm biased. I use bc for all of my calculation. And Mac doesn't have my bc.