title: Floating point comparison with variable in bash
body: <p>I want to compare a floating point variable to an integer.
  I know this is not the best to do with bash, but my whole script is already written in bash.
  $number can be any integer. If it below or equal 50, I want output1, for all others I want an output with the other variable k. This is what I have so far:</p>
  
  <pre><code>number=43
  test=$(echo "scale=2; $number/50" | bc -l)
  echo "$test"
  for k in {1..5}
  do
      if ["$test" -le 1]
      then echo "output"
  
      elif ["$test" -gt $k]
      then echo "output$k"
      fi
  done
  </code></pre>
  
  <p>If I try with test=0.43, the first loop does not even work. I think it has to do with an integer and a floating point comparison but cannot make it work.</p>
  
  <p>Anything I am missing?</p>
  
  <p>PS:this <code>[0.43: command not found</code> is what the terminal outputs.</p>