53
votes
22answers
9k views

Any command line calculator for Ubuntu?

I am looking for a Calculator which can do calculations in the terminal itself without any other extra prefixes and suffixes. For example: If I typed something like 10000-9000 in the terminal, the ...
3
votes
1answer
182 views

How to use arithmetic expressions in the terminal?

Why I'm getting the following weird results? echo &((5/3)) [5] 6733 [4] Done echo echo &(( 2 + 9 )) [6] 6734 [5] Done echo echo &(( 3 + 99 )) ...
5
votes
2answers
549 views

Command line calc program and PI constant

I am using calc often (from the terminal) and I was wondering if there is a PI constant in there, predefined, somewhere?
10
votes
5answers
3k views

Command line calculator that keeps fractional values

I just found a good command line calculator program called bc and was satisfied with it until I discovered it rounds off fractional values, thus causing loss in precision. According to its man page: ...