Re: Is there ToNumber?
- To: mathgroup at smc.vnet.net
- Subject: [mg119616] Re: Is there ToNumber?
- From: SigmundV <sigmundv at gmail.com>
- Date: Tue, 14 Jun 2011 06:13:39 -0400 (EDT)
- References: <isnllk$n7b$1@smc.vnet.net> <201106090945.FAA06238@smc.vnet.net>
I had imagined that applying Real to the string would make it a number, e.g. Real@@"1.2", but it doesn't work: In[1]:= Head[Real @@ "1.2"] Out[1]= String Of course ToExpression works as intented: In[2]:= Head[ToExpression@"1.2"] Out[2]= Real Why can't I simply change the head of a string by using Apply?
- Follow-Ups:
- Re: Is there ToNumber?
- From: Daniel Lichtblau <danl@wolfram.com>
- Re: Is there ToNumber?
- References:
- Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?
- From: Peter Breitfeld <phbrf@t-online.de>
- Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?