I'm reading a txt file containing + & - decimals which may contain exponential notations:
6.636666E-08
0
-5.5
2.2
I need to order the decimals then write them back to a different txt file.
I'm using decimal.Parse()
to add the decimals into a dictionary, then I order them.
When I do that I lose the exponential notaions.
decimal.Parse()
converts 6.636666E-08 to : 0.00000006636666
I need to write the original values as they were(just ordered).
How can I do that efficiently efficiently ?
How can I round the exponential notation issue ?
The file might contain thousands of lines, is decimal.Parse()
an efficient way of doing it?
Thank you