bc

Arbitrary precision calculator language for mathematical computations

brewmacoslinux
Try with needOr install directly
Source

About

Arbitrary precision numeric processing language

Commands

bc

Examples

Basic arithmetic with arbitrary precision$ echo '10 / 3' | bc -l
Calculate with specific decimal places$ echo 'scale=2; 22 / 7' | bc
Perform mathematical functions like sine$ echo 's(1)' | bc -l