MathGroup Archive 2011

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

Search the Archive

Re: Question with ToExpression

  • To: mathgroup at
  • Subject: [mg119624] Re: Question with ToExpression
  • From: Bob Hanlon <hanlonr at>
  • Date: Tue, 14 Jun 2011 07:51:44 -0400 (EDT)
  • Reply-to: hanlonr at

ToExpression["1.0"] // NumberForm[#, {Infinity, 1}]&


Bob Hanlon

---- graser <graser at> wrote: 

Dear Group,

I am trying to make an expression of 1.0 with ToExpression.
But if I use it, ToExpression[1.0], the output is 1. instead of 1.0
In[1]:= ToExpression["1.0"]
Out[1]= 1.


In[2]:= ToExpression[1.0]

Out[2]= 1.

Is there  any way to make it possible to make the output as 1.0 not


  • Prev by Date: Metastable expressions in Mathematica
  • Next by Date: Re: Is there ToNumber?
  • Previous by thread: Re: Question with ToExpression
  • Next by thread: Metastable expressions in Mathematica