Bash Calculator

For floating point math calculations in Bash, use /usr/bin/bc.
A simple calculator program might look something like this:

#!/bin/bash
echo "scale=2; $@" | /usr/bin/bc -l
exit $?

Alternatively, a calculator function:

calc()
{
   echo "scale=2; $@" | /usr/bin/bc -l
   return $?
}

If you are looking for more, here are other ways to do math in Bash.


Comments

.replicahandbagsone.com/prada

.replicahandbagsone.com/prada-handbags-c-91.html">Prada Handbags to join the big party can show women's fashion, so even the poor people like to buy replica Prada Handbags, so when you wAs everyone knows that the Chanel Handbags are popular in the whole world, sell replica Chanel Handbags can get more profit, many people like to sell
Taking the
fake Prada Handbags, do you feel have a Prada replica Handbags is a cool action?
The best GUCC Fashion women love Miu Miu Handbgs, but the price is to high, so many ladies choose Miu Miu replica Handbgs, in the replica Miu Miu Handbgs shops, you will get the popular fake Miu Miu Handbgs that you love.

Useful information. I tried

Useful information. I tried to implement but could notasigurari auto