I am creating a program to count number of digits in number
When I am putting value in 5 digits it is producing right answer but when I put value in 6 digits it is producing wrong value.
To see what happening in the code I debugged the code and found that when I put 5 digit number,it convert from string to int correctly but when I put 6 digit value it convert the value wrong and give some negetive value.
I am using
CALL NUMIN(AB,NUM,10,STAT);
AB is a string ab[0:40]
NUM is an Integer
STAT is a string STAT[0:50]