Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ToExpression again

  • To: mathgroup at
  • Subject: [mg82416] Re: [mg82373] ToExpression again
  • From: Carl Woll <carlw at>
  • Date: Fri, 19 Oct 2007 05:10:42 -0400 (EDT)
  • References: <>

nils wrote:

>when I evaluate
>the result is
>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..
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


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