MathGroup Archive 2011

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

Search the Archive

Re: Question with ToExpression

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