title: Bash - Calculate Percentage
body: <p>I am trying to calculate on a Linux System. 
  I do have two different numbers, defined with a variable</p>
  
  <p><code>$1= 1024</code>
  <code>$2= 20</code></p>
  
  <p>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:</p>
  
  <pre><code>echo $((100/$1*$2))
  </code></pre>
  
  <p>Do anyone have an idea how i can calculate this? </p>