If you’re looking for a good calculator on Linux / Unix, you can use bc. bc is “an arbitrary precision calculator” supporting bignumbers and many operators … well it will mostly do whatever you want (check the fine documentation).
Anyway, about those 2 little tricks I promised :
That was it ! This is what I always need and forget, so I decided to blog it once for all…
If you really don’t know bc yet, give it a try !
Update: you can start bc with a default scale of 20 by using the “-l” option on the command line … (Thanks to Luke).