title: How can I do float comparison in Bash?
body: <pre><code>lock_percent=$(echo &quot;scale = 5; $value2*100/$value1&quot; | bc)
  value=`echo &quot;$lock_percent&quot; | bc`
  
      if [[ &quot;$value&quot; &gt; &quot;$8&quot; ]]; then
         echo &quot;Lock Percentage:$value percentage State Critical&quot;
         exit $STATE_CRITICAL
      fi
  </code></pre>
  <p>I am not able to perform a float comparison with this. Where am I going wrong?</p>