Re: ToExpression[ToString[expr]]=E2=89 _expr
- To: mathgroup at smc.vnet.net
- Subject: [mg109980] Re: ToExpression[ToString[expr]]=E2=89 _expr
- From: dh <dh at metrohm.com>
- Date: Thu, 27 May 2010 06:44:39 -0400 (EDT)
- References: <htivhq$2fn$1@smc.vnet.net>
Hi James, TosTring[1/3] creates a 2 dimensional output form for this expression: ToString[1/3] // FullForm Obviously Mathematica can no more correctly interpret this form. I consider this a bug you should report. We can prevent this faulty behavior by specifying an "InputForm" that prevebts the 2-dim output: ToExpression[ToString[InputForm[1/3]]] cheers, Daniel Am 26.05.2010 13:09, schrieb James Stein: > Evaluating: > > ToExpression [ ToString [ 1/3 ] ] > > I did not expect negative three! > > Bug? or a lack in my understanding? > > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>