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
Command Description
bc An arbitrary precision calculator language
dc an arbitrary precision calculator