Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: String to number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73189] Re: [mg73174] String to number
  • From: Adriano Pascoletti <pascolet at dimi.uniud.it>
  • Date: Wed, 7 Feb 2007 04:42:26 -0500 (EST)
  • References: <200702060819.DAA24596@smc.vnet.net>

Jos=E9,
use ToExpression:

In[1]:=
ToExpression["12"]

Out[1]=
12

Adriano Pascoletti

On 6 feb 2007, at 09:19, Jos=E9 Carlos Santos wrote:

> Hi all:
>
> The ToString command generates a string from an expression. Is there a
> similar command which generates numbers from strings? What I mean by
> this is: is there a command (let's call it ToNumber) such that
>
> ToNumber["12"]
>
> generates the number 12?
>
> Best regards,
>
> Jose Carlos Santos
>



  • Prev by Date: Re: Re: Problem with new Mathematica Installation on Linux
  • Next by Date: Re: dot minus operator
  • Previous by thread: String to number
  • Next by thread: RE: String to number