echo "scale=2; 282.73/640" | bc
This will print .44
How to make the variable as 0.44
echo "scale=2; 282.73/640" | bc
This will print .44
How to make the variable as 0.44
printf "%0.2f" $(echo "scale=2; 282.73/640" | bc)
echo "282.73 640" | awk '{printf "%0.2f\n", $1 / $2 }'