4 ms·
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 t
by pkulak 6y ago
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.
- ilyagr 6y agoUse 'bc -l', at least on Linux (GNU bc). Then it's suddenly useful. I recommend aliasing bc to 'bc -ql'. 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?
- fyhn 6y agoI've used #!/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'
- gspr 6y ago> Is there really nothing better? I use iPython or GHCi for my calculator needs.