Quantcast
Channel: ToExpression and Fortran notation - Mathematica Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by LLlAMnYP for ToExpression and Fortran notation

The given above answer is correct, however if you are not against using undocumented functions, thenInternal`StringToDouble["9.0E-03"]is much faster.To demonstrate the speedup, first generate some fake...

View Article



Answer by Markus Roellig for ToExpression and Fortran notation

You can use ImportString, with the "Table" or "List" argument. See the documentation for details.ImportString["9.0E-03", "Table"](* {{0.009}} *)or ImportString["9.0E-03", "List"](* {0.009} *)

View Article

ToExpression and Fortran notation

ToExpression["9.0E-03"]interprets the string as 9*e - 3instead of what I am expecting:0.009How can I convert the expression to fortran notation?

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images