MathGroup Archive 2007

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

Search the Archive

Re: ToExpression again

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82408] Re: [mg82373] ToExpression again
  • From: Syd Geraghty <sydgeraghty at mac.com>
  • Date: Fri, 19 Oct 2007 05:06:35 -0400 (EDT)
  • References: <200710180904.FAA24086@smc.vnet.net>

Nils,

NumberForm[ToExpression["1.23456789"], {17, 20}]


    1.23456789000000000000    is overkill


NumberForm[ToExpression["1.23456789"], {9, 8}]


does what you want precisely

1.23456789

Cheers ... Syd

Syd Geraghty B.Sc., M.Sc.
sydgeraghty at mac.com
San Jose, CA

On Oct 18, 2007, at 2:04 AM, 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
>
>



  • Prev by Date: Re: ToExpression again
  • Next by Date: Re: ToExpression again
  • Previous by thread: Re: ToExpression again
  • Next by thread: Re: ToExpression again