I am trying to calculate on a Linux System. I do have two different numbers, defined with a variable
$1= 1024
$2= 20
My task is now to calculate how many percent are 20 of 1024. The calculation would be (100/1024*20) The problem is, that bash always says 0 with this type of code:
echo $((100/$1*$2))
Do anyone have an idea how i can calculate this?