MathGroup Archive 2012

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

Search the Archive

Re: Converting from string to real

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126778] Re: Converting from string to real
  • From: Adriano Pascoletti <adriano.pascoletti at uniud.it>
  • Date: Thu, 7 Jun 2012 05:17:57 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201206060853.EAA17920@smc.vnet.net>

Internally it is as you like:

In[4]:= InputForm[ToExpression["109266.75"]]
Out[4]//InputForm= 109266.75


Adriano Pascoletti

2012/6/6 fcaleyo <fcaleyo at gmail.com>

> Hi guys, I've got a problem with ToExpression[].
> It seems to round large real numbers off, e.g.
> ToExpression["109266.75"] returns 109267., still a real, yet not exactly
> what the original string meant.
> Any idea to solve this?
> Many thanks
> fcaleyo
>
>


  • Prev by Date: Can Mathematica do regression, or similar?
  • Next by Date: Re: Converting from string to real
  • Previous by thread: Re: Converting from string to real
  • Next by thread: Re: Converting from string to real