Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

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

Search the Archive

Is there ToNumber?

  • To: mathgroup at
  • Subject: [mg119589] Is there ToNumber?
  • From: Ted Sariyski <tsariysk at>
  • Date: Sat, 11 Jun 2011 03:59:24 -0400 (EDT)
  • References: <isnllk$n7b$> <>

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

but I suspect there is easier way.
Thanks in advance,

  • Prev by Date: mathematica 8 and psfrag
  • Next by Date: Merging manual 2D drawing with 2D Graphics promitives
  • Previous by thread: Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?
  • Next by thread: Re: Is there ToNumber?