Fixed SICSType to recognize exponential numbers

This commit is contained in:
2014-08-28 09:03:41 +02:00
parent c3fe7555db
commit 9500b59f04

View File

@ -199,7 +199,7 @@ static int isNum(char *pText)
for (i = 0; i < strlen(pText); i++) { for (i = 0; i < strlen(pText); i++) {
if (!isdigit(pText[i])) { if (!isdigit(pText[i])) {
if (!((pText[i] == '+') || (pText[i] == '-') || (pText[i] == '.'))) { if (!((pText[i] == '+') || (pText[i] == '-') || (pText[i] == '.') || (tolower(pText[i]) == 'e' ))) {
iRet = 0; iRet = 0;
break; break;
} }