Re: Question with ToExpression
- To: mathgroup at smc.vnet.net
- Subject: [mg119624] Re: Question with ToExpression
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 14 Jun 2011 07:51:44 -0400 (EDT)
- Reply-to: hanlonr at cox.net
ToExpression["1.0"] // NumberForm[#, {Infinity, 1}]& 1.0 Bob Hanlon ---- graser <graser at 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!