Hi All,
I have problem in the middle of implementing to users, whereby the complaint is all about the decimal place which is too long. I need two decimal places only, but the outcome from command is always fixed to 6.
See the sample :
before:
Sort Total
Site Sort SortName Parts %/Total
----------------------------------------------
9 1 0.06
10 6 0.35
using command:
awk '$1 == 10 {$2-=1;$3=$2/1720*100} 1' inputfile|sed 's/^10 / 10 /g'
result:
Sort Total
Site Sort SortName Parts %/Total
----------------------------------------------
9 1 0.06
10 5 0.290698
The thing is, I need the 0.290698 above to just have 2 decimal places, become --> 0.29
THks !
Desire result:
Sort Total
Site Sort SortName Parts %/Total
----------------------------------------------
9 1 0.06
10 5 0.29