Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3096
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Question with ToExpression |
| Date | 2011-06-14 11:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <it7i1s$78a$1@smc.vnet.net> (permalink) |
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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Question with ToExpression Bob Hanlon <hanlonr@cox.net> - 2011-06-14 11:52 +0000
csiph-web