title: bash integer expression expected when using greater than
body: <p>I'm writing a script and part of it outputs a number $stats i.e 74.9 and if it's less than 100 it's a fail if not it's a pass. I've tried</p>
  
  <pre><code>do stuff
  done
  
  echo $stats
  
  if [ $stats -gt 100 ]; then
  echo "PASS"
  else
  echo "FAIL"
  fi
  </code></pre>
  
  <p>but it fails with</p>
  
  <pre><code>72.4
  ./runme.sh: line 66: [: 72.4: integer expression expected
  FAIL
  </code></pre>