Unix has a simple calculator called "bc". (If you need special functions, use "bc -l")
At the prompt just type bc.
Then to make sure you get enough decimal places type scale=10.
Then you can type in whatever calculation you want.
To exit, type CTRL-d.