Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How show axes labels with AxesOrigin->{0,0,0} in 3D?
Replies: 24   Last Post: Jun 16, 2011 4:02 AM

 Messages: [ Previous | Next ]
 Dr. Peter Klamser Posts: 23 Registered: 6/11/11
Re: Is there ToNumber?
Posted: Jun 12, 2011 6:21 PM

.... ToExpression["1 e^3"]

It looks for an string, that smells a little bit like a expression. I
think it is good idea to offer something, that can be interpreted as an
exponent.

Kind regards

Peter

> On 11 Giu, 12:52, "Dr. Peter Klamser"<klam...@googlemail.com> wrote:
>> ... ToExpression["1+1"]
>>
>> One Hint: If you know a function in Mathematica like "ToString", you
>> mentioned in your email, look in the help system in the section "see
>> also", there you find ToExpression["1+1"].
>>
>> Kind regards
>>
>> Peter
>>
>> Am 11.06.2011 09:59, schrieb Ted Sariyski:
>>

>>> 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];
>>> Close[ch];
>>> but I suspect there is easier way.
>>> --Ted

>> --
>> Mit freundlichen Gr en
>>
>> Uta& Peter Klamser

> The request is less trivial than ToExpression["1+1"] since, for
> example, typical number format cannot be read into Mathematica without
> the rather involved trick reported by Ted Sariyski. As an example,
>
> ToExpression["1e3"]
> ==> e3
>
>
> ch = StringToStream["1e3"];
> Close[ch];
> ==> 1000
>
> I feel this complication as rather unfortunate, unless I am also
> missing a simpler way to read in numbers.
>
>

--
Mit freundlichen Grüßen

Uta& Peter Klamser

Date Subject Author
6/6/11 Murray Eisenberg
6/7/11 Robert Rosenbaum
6/7/11 Nasser Abbasi
6/8/11 Murray Eisenberg
6/9/11 Peter Breitfeld
6/11/11 Ted Sariyski
6/14/11 Albert Retey
6/15/11 Ted Sariyski
6/16/11 Bob Hanlon
6/16/11 hmichel@cox.net
6/11/11 Dr. Peter Klamser
6/12/11 Harvey P. Dale