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