title: Floating point comparison in linux shell
body: <p>I am trying to achieve this in Linux sell</p>
  
  <pre><code>set a=1.2345
  set b=2.34
  
  if (abs(a-b)&gt;1.2) then
  ...
  endif
  </code></pre>
  
  <p>There are several issues that I am facing:</p>
  
  <ul>
  <li>dealing with floating point</li>
  <li>comparison ( using $ vs not using it)</li>
  <li>calculating the absolute value</li>
  </ul>
  
  <p>I am not able to resolve my issue and handle all of them at once. I have searched many many pages and some solutions don't work for my me. For example I don't seem to have the abs function.   </p>
  
  <p>Any help would be greatly appreciated. </p>