Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: ToExpression[ToString[expr]]=E2=89 _expr

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109986] Re: ToExpression[ToString[expr]]=E2=89 _expr
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Thu, 27 May 2010 06:45:47 -0400 (EDT)

I don't understand the result either, but I have a clue:

   FullForm[ToString[1/3]]
"1\n-\n2"

I would actually expect the result to be a pair of output cells, namely:

   1

   -2

On 5/26/2010 7:10 AM, James Stein wrote:
> Evaluating:
>
>     ToExpression [ ToString [ 1/3 ] ]
>
> I did not expect negative three!
>
> Bug? or a lack in my understanding?
>
>

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: ToExpression[ToString[expr]]=E2=89 _expr
  • Next by Date: exporting publishable 3D graphics
  • Previous by thread: Re: ToExpression[ToString[expr]]=E2=89 _expr
  • Next by thread: Re: ToExpression[ToString[expr]]=E2=89 _expr