MathGroup Archive 2004

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

Search the Archive

Re: 100/3 in a file


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.


  • 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