Commit 66b130c3 authored by Victor Yacovlev's avatar Victor Yacovlev

Real value parsing: fixed empty exp-form part

parent d894c3ec
......@@ -732,6 +732,10 @@ public:
sExponenta.push_back(ch);
}
}
if (hasE && sExponenta.length()==0) {
error = WrongExpForm;
return 0.0;
}
int fractionalLength = sFractional.length();
for (int i=sFractional.length()-1; i>=0; i--) {
Char ch = sFractional.at(i);
......
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