Commit 822bf93b authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

stringToReal: supports E upper case

parent 58b957e0
......@@ -946,7 +946,7 @@ public:
for (SizeType i = 0; i < s.length(); ++i) {
char c = s[i];
bool b1 = (c<48 || c>57);
bool b2 = (c != '.' && c != '-' && c != '+' && c != 'e');
bool b2 = (c != '.' && c != '-' && c != '+' && c != 'e' && c != 'E');
if (b1 && b2) {
String str = s +" is not a real number\n";
str += "Suggestion: Add -DUSE_COMPLEX to your Makefile.\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment