How to convert scientific notation to standard?
-
Hello,
I have a text file with data like this:
*Name: 1
55.0021 1.1E1
103.9542 4.0E-1
…Name: 1
…*I want to convert the numbers in scientific notation into standard decimals. There is no other way for me to export the data. So I need to do it here. Could you help me?
Thanks!
-
depending on your real data and that you have python script plugin installed
this might do what you wanteditor.rereplace('\d+?\.\d+?E\-*\d', lambda m: float(m.group()))
-
@Ekopalypse said in How to convert scientific notation to standard?:
editor.rereplace(‘\d+?.\d+?E-*\d’, lambda m: float(m.group()))
I just installed the plugin and tried the code. It works perectly. Thanks a lot!