Skip to main content
10 events
when toggle format what by license comment
Nov 4 at 10:50 history edited István Zachar CC BY-SA 4.0
Emended StringToMReal as the current version, moved StringToDouble to end. Added some caveats of important pitfalls.
Nov 8, 2022 at 13:44 history edited John CC BY-SA 4.0
added 226 characters in body
Jun 30, 2020 at 15:09 comment added Gustavo Delfino Keep in mind that Internal`StringToDouble[] can produce unexpected results: "-1" is parsed as -1.0 but " -1" (extra leading space) is parsed as 1.0 (sign dropped). Also "1.0000000000000000" is parsed as 1. but if you add one more zero it returns $Failed["Bignum"] and no message is generated.
Oct 18, 2012 at 20:34 comment added FJRA @GeorgeWolfe because it might lead you to a code leak. What if there is dangerous code within the string? Or something innocent like a equal sign (=) may set any of your variables.
Oct 17, 2012 at 16:19 comment added George Wolfe @FJRA Why should ToExpression be avoided?
Feb 23, 2012 at 16:06 comment added Ian Hinder This seems like functionality that should be available (officially) in Mathematica. Will Wolfram accept feature-requests?
Feb 23, 2012 at 16:05 vote accept Ian Hinder
Feb 14, 2012 at 17:37 comment added FJRA Always try to avoid ToExpression!
Feb 14, 2012 at 15:32 comment added rm -rf Another one from Mr.Undocumented!
Feb 14, 2012 at 15:11 history answered Oleksandr R. CC BY-SA 3.0