Re: 100/3 in a file

*To*: mathgroup at smc.vnet.net*Subject*: [mg50759] Re: [mg50711] 100/3 in a file*From*: "David Annetts" <davidannetts at ihug.com.au>*Date*: Sun, 19 Sep 2004 21:39:15 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Hi Ran, > I have a list I define : A=Table[i*100/3,{i,1,3}] > which gives me output of - {100/3,200/3,100} > Mathematica, as expected, refer to all the cells as numbers. > > the problem begins after saving to a file like this : > Export["A.dat",A] > and then Import["A.dat", "Table"]. > > After I upload the data from file, all the (XX / XX) are not treated > as number any more (the 100 does!). > > DOes someone has a solution to this simple problem? > I know I can estimate with "N" function, and only then save to file, > but i would like if possible to not to lose information - save it as > it is. A = Table[i*100/3, {i, 1, 3}] Export["fraction.dat", A, "Table"]; Import["fraction.dat", "Table"] // Flatten Works for me. I think your error was not specifying the format when you exported the table. Regards, Dave.