Re: ToExpression again
- To: mathgroup at smc.vnet.net
- Subject: [mg82409] Re: ToExpression again
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Fri, 19 Oct 2007 05:07:05 -0400 (EDT)
On 10/18/07 at 5:04 AM, nils at theune.com (nils) wrote: >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)? All the digits are there as can be seen from: In[1]:= ToExpression["1.23456789"] Out[1]= 1.23457 In[2]:= RealDigits@% Out[2]= {{1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,0},1} Mathematica is simply displaying the number of digits set by your preferences. If you want Mathematica to display a different number of digits, change your preferences appropriately. -- To reply via email subtract one hundred and four