Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3096 > unrolled thread

Re: Question with ToExpression

Started byBob Hanlon <hanlonr@cox.net>
First post2011-06-14 11:52 +0000
Last post2011-06-14 11:52 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Question with ToExpression Bob Hanlon <hanlonr@cox.net> - 2011-06-14 11:52 +0000

#3096 — Re: Question with ToExpression

FromBob Hanlon <hanlonr@cox.net>
Date2011-06-14 11:52 +0000
SubjectRe: Question with ToExpression
Message-ID<it7i1s$78a$1@smc.vnet.net>
ToExpression["1.0"] // NumberForm[#, {Infinity, 1}]&

1.0


Bob Hanlon

---- graser <graser@gmail.com> 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.

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!

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web