Learn all about bc command
bc is a language that supports arbitrary precision numbers with interactive execution of statements. There are some similarities in the syntax to the C programming language. A standard math library is available by command line option. All code is executed as it is read. More information can be found in its manual:
root:~# man bc