MathGroup Archive 2011

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

Search the Archive

Is there ToNumber?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119589] Is there ToNumber?
  • From: Ted Sariyski <tsariysk at craft-tech.com>
  • Date: Sat, 11 Jun 2011 03:59:24 -0400 (EDT)
  • References: <isnllk$n7b$1@smc.vnet.net> <201106090945.FAA06238@smc.vnet.net>

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