I have an array in python that contains a set of values, some of them are
2.32313e+07
2.1155e+07
1.923e+07
11856
112.32
How d
In answer to the last part of your question, awk
can use the same printf
format:
awk '{printf "%f\n",$1}' exponential_file
Where exponential_file contains:
2.32313e+07
2.1155e+07
1.923e+07
11856
112.32
You can do the conversion into a variable for use later. Here is a simplistic example:
awk '{n = sprintf("%f\n",$1); print n * 2}' exponential_file