cmd:bc 

$ bc
4 + 2*3 - 2/2 - (1 + 2)
6
$ echo "1.2 + 2.34 " | bc
3.54
$ echo "1.2 / 2.34 " | bc
0
$ echo "1.2 / 2.34 " | bc -l
.51282051282051282051
$ echo "scale=4; 1.2 / 2.34 " | bc -l
.5128

hex to dec 

$ echo 'ibase=16; 11' | bc
17

Help 

If  bc is invoked with the -l option, a math library is preloaded and
the default scale is set to 20.   The math functions  will  calculate
their  results  to the scale set at the time of their call.