This question already has an answer here:
Basically I need to convert centimetres to inches which I am trying to do by diving the area in centimetres by 2.54.
But I just cannot get this to work.
echo "please enter width and then height" read width read height area=$(($width * $height)) inchesarea=$((area / 2.54)) echo $area echo $inchesarea
Should I be using
bc for this?