1
$\begingroup$

I am exporting some data into the txt file but since the values exported to this txt file expresses 10^6 to be *^6, I cannot use these numbers in calculations in other programs.. For instance, when I do,

 AA= {-292., -5., -9036., -1.162*10^6, -1.555*10^6, \
     -1.85*10^6, -2.146*10^6, -2.401*10^6, -2.736*10^6, \
     -2.91*10^6}
 Export["C:/data output1.txt", AA]

May I ask how I can deal with this problem..?

Thank you.

$\endgroup$
2
$\begingroup$

Try with

Export["data_output1.txt", AA, "CSV"]
$\endgroup$
  • $\begingroup$ That's perfect! Thank you very much! $\endgroup$ – Eric Sep 9 '14 at 13:07
  • 1
    $\begingroup$ Or perhaps just Export["data_output1.csv", AA] $\endgroup$ – m_goldberg Sep 9 '14 at 13:08
  • $\begingroup$ Yep, I assumed the OP wanted a .txt file $\endgroup$ – rhermans Sep 9 '14 at 13:09
  • $\begingroup$ Cool! Thanks a lot! $\endgroup$ – Eric Sep 10 '14 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.