I haven’t talked about many command-line calculators. I suppose that means jumping straight to bc might be a bit heavy-handed.
This is not my first run-in with bc; I mentioned it years ago as a solution for calculating at the prompt. I think I said you could balance your checkbook with it. 🙄
I use it from time to time, when I need to find out what 8 gigabytes is in terms of kilobytes, or something odd like that. It’s rare that I put it through its paces.
Which is unfortunate, because bc is a powerful little program. What do I mean by that?
Well, can your pocket calculator estimate pi to the 5000th digit? Can your office calculator? Can Google?
bc can. Start it with
bc -l, and try this:
After a minute (or two or three or ten 😉 ) you should have an answer. And it will fill your screen.
I haven’t been appreciative enough of this little program (I could say that about a lot of things), and considering how easy it is to use and how flexible it is, that’s a shame.
And I’m tempted to put it all down on “paper,” but someone else already did a better job. If you want a proper introduction on how to use bc, that’s the place to go.
And besides: I have hundreds more applications to look at. 😦 Moving on. …