title: How to round number to the next 10th equivalent on bash/ksh?
body: <p>I tried many sed/awk/tail/cut/expr commands/functions but I couldn't get it.</p>
  
  <p>I need to round any number I am having in a variable to the next/nearest 10th equivalent.</p>
  
  <p>Example(S) on what I need to round:</p>
  
  <pre><code>Source no  &gt;  Rounded to
  1.74       &gt; 1.80
  11.74      &gt; 11.80    
  222.74     &gt; 222.80    
  5.35       &gt; 5.40    
  44.11      &gt; 44.20    
  4.93       &gt; 5.00    
  4.89       &gt; 4.90    
  4.80       &gt; 4.90
  </code></pre>
  
  <p>So I need to reach the next 0.10 number !</p>
  
  <ul>
  <li>The rounded number should be *.XX</li>
  <li>The second X must be 0 </li>
  <li>The first X must be (the old number + 1)</li>
  <li>The first X if -eq 9 then * should rounded up .. etc ..</li>
  </ul>
  
  <p>What I need is rounding up my number to the next (1/10=0.10), hence 5.98 will be 6.00</p>
  
  <p>The needed output format should be *.XX and the input number is also *.XX</p>