Rounding issue with awk

Hi Friends,

I am trying to round following number.

0.07435000

echo "0.07435000"|awk '{printf "%s\n",$1*100}'|awk '{printf "%.2f\n",$1}'

It returns: 7.435
It should return: 7.44

Any suggestion please?

Thanks,
Prashant

try this..

echo "0.07435000"|awk '{printf "%.2f\n",$1*100+0.005}'

Got it.

Thank you very much,

Prashant