I don't really like bc. Just seems so old-school, and typing things like "100.0 / 34.2" gives you "2". Is there really nothing better? I feel like someone has to have made some new hotness in Rust by now.
#!/bin/sh
python3 -c "from math import *; print($1)"
as my calculator for some time now, and it's quite useful. I need to invoke it with quotes though: calc '100/34.2'You can alternatively remember to do 'scale=10' before doing anything else in bc.
This isn't a great ad for the article's claim that CLIs are in every way superior to GUIs, is it?
I use iPython or GHCi for my calculator needs.