If the ASCII data is coming in from a device whose input statement supports it, use the DEC formatter. Otherwise you'll have to do the conversion yourself. If the ASCII character is in the byte variable X, you'd do X = X - "0" to get a numeric value between 0 and 9. If you're accumulating a decimal number from five successive ASCII digits, you could do
answer = 0
for i = 0 to 4
answer = answer * 10 + (X(i) - "0")
next
Obviously, if the format of the number is more complex or if you need error checking, this would have to be more complex.
Comments
answer = 0
for i = 0 to 4
answer = answer * 10 + (X(i) - "0")
next
Obviously, if the format of the number is more complex or if you need error checking, this would have to be more complex.