Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Question with ToExpression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119621] Question with ToExpression
  • From: graser <graser at gmail.com>
  • Date: Tue, 14 Jun 2011 06:14:33 -0400 (EDT)

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.

Or

In[2]:= ToExpression[1.0]

Out[2]= 1.

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

Thanks!


  • Prev by Date: Re: implicit surfaces from older version of Mathematica
  • Next by Date: Re: Is there ToNumber?
  • Previous by thread: Matrix/tensor algebra shortcuts?
  • Next by thread: Re: Question with ToExpression