Severe ToExpression Fault?
- To: mathgroup at smc.vnet.net
- Subject: [mg42892] Severe ToExpression Fault?
- From: nils at theune.com (Nils Theune)
- Date: Fri, 1 Aug 2003 01:26:02 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi folks, running Mathematica 4.0.1 I am stuck with the following problem: Input: Print["-1,97E-04"]; Print[StringReplace["-1,97E-04", {"," -> "."}]]; Print[ToExpression[StringReplace["-1,97E-04", {"," -> "."}]]]; Output: -1,97E-04 -1.97E-04 -9.35502 Can somebody explain this to me? Why does the ToExpression Function not make the decimal -1.97E-04 out of the String "-1.97E-04". What in the hell is going wrong (-9.35502->"Where does this number come from?") and what can be done to circumvent the ToExpression function. I am greatful for any kind of comments on this problem/bug. regards Nils
- Follow-Ups:
- Re: Severe ToExpression Fault?
- From: jmt <jmt@dxdydz.net>
- Re: Severe ToExpression Fault?
- From: Dr Bob <drbob@bigfoot.com>
- Re: Severe ToExpression Fault?
- From: Peter <peter1963@totalise.co.uk>
- Re: Severe ToExpression Fault?