MathGroup Archive 2011

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

Search the Archive

Re: Is there ToNumber?

... ToExpression["1+1"]

One Hint: If you know a function in Mathematica like "ToString", you 
mentioned in your email, look in the help system in the section "see 
also", there you find ToExpression["1+1"].

Kind regards


Am 11.06.2011 09:59, schrieb Ted Sariyski:
> Hi,
> Is there a built-in function which returns the numeric value of a string
> (like ToString but inverse).  Currently I use mine function toNumber:
>    ch = StringToStream[timeStr];
>    timeNum = Read[ch, Number];
>    Close[ch];
> but I suspect there is easier way.
> Thanks in advance,
> --Ted

Mit freundlichen Grüßen

Uta&  Peter Klamser

  • Prev by Date: Re: Front end - Error when saving file
  • Next by Date: Re: Seaching in Pi a sequence. Looking for a faster method
  • Previous by thread: Is there ToNumber?
  • Next by thread: Re: Is there ToNumber?