Re: ToExpression again
- To: mathgroup at smc.vnet.net
- Subject: [mg82383] Re: [mg82373] ToExpression again
- From: Curtis Osterhoudt <cfo at lanl.gov>
- Date: Fri, 19 Oct 2007 04:53:29 -0400 (EDT)
- Organization: LANL
- References: <200710180904.FAA24086@smc.vnet.net>
- Reply-to: cfo at lanl.gov
On Thursday 18 October 2007 03:04:22 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 NumberForm[ToExpression["1.23456789"], StringLength["1.23456789"]] should do it, at least for this type of decimal number. -- ========================================================== Curtis Osterhoudt cfo at remove_this.lanl.and_this.gov PGP Key ID: 0x4DCA2A10 Please avoid sending me Word or PowerPoint attachments See http://www.gnu.org/philosophy/no-word-attachments.html ==========================================================
- References:
- ToExpression again
- From: nils <nils@theune.com>
- ToExpression again