Skip to main content
edited body
Source Link
Kagaratsch
  • 12.1k
  • 4
  • 25
  • 75

My question is similar to this one, except the solution presented there does not work in my case since my table contains strings as well as numbers.

I would like to export data such as

data = List[List["A",3.0719`*^8],List["B",1.8483`*^8],List["C",6.93`*^6]];

to a file. Unfortunately, if I do

Export["data.csv",data];

the file contains the numbers in a shortened notation, such as 3.0766e80719e8. I would like the file to save all digits without shortening anything, such that e.g. 3.0766e80719e8 is saved as 307190000. How should I be doing that in Mathematica 11.3?

My question is similar to this one, except the solution presented there does not work in my case since my table contains strings as well as numbers.

I would like to export data such as

data = List[List["A",3.0719`*^8],List["B",1.8483`*^8],List["C",6.93`*^6]];

to a file. Unfortunately, if I do

Export["data.csv",data];

the file contains the numbers in a shortened notation, such as 3.0766e8. I would like the file to save all digits without shortening anything, such that e.g. 3.0766e8 is saved as 307190000. How should I be doing that in Mathematica 11.3?

My question is similar to this one, except the solution presented there does not work in my case since my table contains strings as well as numbers.

I would like to export data such as

data = List[List["A",3.0719`*^8],List["B",1.8483`*^8],List["C",6.93`*^6]];

to a file. Unfortunately, if I do

Export["data.csv",data];

the file contains the numbers in a shortened notation, such as 3.0719e8. I would like the file to save all digits without shortening anything, such that e.g. 3.0719e8 is saved as 307190000. How should I be doing that in Mathematica 11.3?

Source Link
Kagaratsch
  • 12.1k
  • 4
  • 25
  • 75

Export table of mixed data without shortened decimal notation?

My question is similar to this one, except the solution presented there does not work in my case since my table contains strings as well as numbers.

I would like to export data such as

data = List[List["A",3.0719`*^8],List["B",1.8483`*^8],List["C",6.93`*^6]];

to a file. Unfortunately, if I do

Export["data.csv",data];

the file contains the numbers in a shortened notation, such as 3.0766e8. I would like the file to save all digits without shortening anything, such that e.g. 3.0766e8 is saved as 307190000. How should I be doing that in Mathematica 11.3?