Suppose I have a string containing the C-representation of a floating point number; for example
s = "1.23e-5"
and I want to convert this to a Mathematica number. How can I do this?
ToExpression[s]
gives Plus[-5, Times[1.23`, e]]
.
Suppose I have a string containing the C-representation of a floating point number; for example
s = "1.23e-5"
and I want to convert this to a Mathematica number. How can I do this?
ToExpression[s]
gives Plus[-5, Times[1.23`, e]]
.