Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: ToExpression again

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82418] Re: [mg82373] ToExpression again
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Sat, 20 Oct 2007 05:42:33 -0400 (EDT)
  • References: <400594.1192783425769.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

x=ToExpression["1.23456789"]
x//InputForm

1.23457
1.23456789

x//FullForm
x//RealDigits
RealDigits[x,2]

1.23456789`
{{1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,0},1}
{{1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,1,1,0,1,1},1}

NumberForm[x,16]
1.23456789

Bobby

On Thu, 18 Oct 2007 04:04:22 -0500, nils <nils at theune.com> 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
>
>
>



-- 

DrMajorBob at bigfoot.com


  • Prev by Date: Re: determine viewpoint value during V6 3d rotation
  • Next by Date: Re: determine viewpoint value during V6 3d rotation
  • Previous by thread: Re: ToExpression again
  • Next by thread: GraphicsGrid