MathGroup Archive 2011

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

Search the Archive

Re: Is there ToNumber?


You could try ToExpression[] 

Heike.

On 11 Jun 2011, at 08:59, Ted Sariyski wrote:

> 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
> 



  • Prev by Date: Re: Merging manual 2D drawing with 2D Graphics promitives
  • Next by Date: Passing Compiled Functions To FindRoot, FindMinimum, and NMinimize
  • Previous by thread: Re: Is there ToNumber?
  • Next by thread: Re: Is there ToNumber?