Fixed SICSType to recognize exponential numbers
This commit is contained in:
2
script.c
2
script.c
@ -199,7 +199,7 @@ static int isNum(char *pText)
|
||||
|
||||
for (i = 0; i < strlen(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;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user