Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: 100/3 in a file

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

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.



  • Prev by Date: Re: Newbie Plot Question
  • Next by Date: Re: how do I display "Power[z,-1]" in an exponetial form?
  • Previous by thread: Re: 100/3 in a file
  • Next by thread: Courier New Button, selecting cells without brackets