I want to convert the value from 1.759114e-07 to 175.9114e-09. How can I script the conversion?
I tried this but I'm not getting what I want (which is 175.9114e-09):
$ echo 1.759114e-07 | awk '{printf("%.3g\n", $1*1e2 ) }'
1.76e-05
I want to convert the value from 1.759114e-07 to 175.9114e-09. How can I script the conversion?
I tried this but I'm not getting what I want (which is 175.9114e-09):
$ echo 1.759114e-07 | awk '{printf("%.3g\n", $1*1e2 ) }'
1.76e-05
printfin that answer. – r_31415 Jul 08 '22 at 00:35awk. This does not mean that the question is aboutawk, or that an answer need to useawk. In fact, it's not even tagged withawk, nor does it mentionawkin the text. If the user comes back to clarify their question, it would possibly make sense to re-open the issue. If you have a question about this that is not answered by the duplicate, then feel free to post a separate question. – Kusalananda Jul 11 '22 at 19:56