Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3096 > unrolled thread
| Started by | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| First post | 2011-06-14 11:52 +0000 |
| Last post | 2011-06-14 11:52 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Question with ToExpression Bob Hanlon <hanlonr@cox.net> - 2011-06-14 11:52 +0000
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Date | 2011-06-14 11:52 +0000 |
| Subject | Re: 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!
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web