Package bc

GNU's bc (a numeric processing language) and dc (a calculator)

http://www.gnu.org/software/bc/

The bc package includes bc and dc. Bc is an arbitrary precision
numeric processing arithmetic language. Dc is an interactive
arbitrary precision stack based calculator, which can be used as a
text mode calculator.

Install the bc package if you need its number handling capabilities or
if you would like to use its text mode calculator.

General Commands (Section 1)
bc
bc is a language that supports arbitrary precision numbers with interactive execution of statements. There are some similarities in the syntax to the C...
dc
dc is a reverse-polish desk calculator which supports unlimited precision arithmetic. It also allows you to define and call macros. Normally dc reads from the...