|
[Date Index]
[Thread Index]
[Author Index]
Re: ToExpression again
- To: mathgroup at smc.vnet.net
- Subject: [mg82416] Re: [mg82373] ToExpression again
- From: Carl Woll <carlw at wolfram.com>
- Date: Fri, 19 Oct 2007 05:10:42 -0400 (EDT)
- References: <200710180904.FAA24086@smc.vnet.net>
nils wrote:
>Hello,
>
>when I evaluate
>
>ToExpression["1.23456789"]
>
>the result is
>
>1.23457
>
>What do I have to do to get the result
>
>1.23456789 (that is with all the digits)?
>
>Thanx to everybody who has an idea..
>Nils
>
>
>
Do you want a machine number or an extended precision number? If you
want a machine number, then the result of ToExpression gives you what
you want:
In[237]:= ToExpression["1.23456789"] // InputForm
Out[237]//InputForm=
1.23456789
If you want an extended precision number, you can add a tick:
In[238]:= ToExpression["1.23456789`9"]
Out[238]= 1.23456789
Carl Woll
Wolfram Research
Prev by Date:
Re: ToExpression again
Next by Date:
why no result & no error from this recursion
Previous by thread:
Re: ToExpression again
Next by thread:
Re: ToExpression again
|