title: Syntax error: invalid arithmetic operator in bash scripting
body: <p>In my bash script I am trying floating point comparison e.g.</p>
  
  <pre><code>a=0.32
  b=0.38
  </code></pre>
  
  <p>I have written below snippet,</p>
  
  <pre><code>if [[ $(`bc-l &lt;&lt;&lt; "$b &gt; $a"`) -eq 0 ]]; then
  echo "true"
  else
  echo "false"
  fi
  </code></pre>
  
  <p>Please advice.</p>