Mapping a range of values

Gramps

Senior Member
Why are we getting this syntax error?

lbenson said;
However, if the theoretical task is to map values in the range of 270-370 (say in w0) to a range of 75 to 225 (say in b2), then you have
b2=w0-270*150/100+75
Try this in the simulator:

Code:
for w0=270 to 370
    b2=w0-270*150/100+75
    sertxd(#b2."")
    next w0
[code]
    sertxd(#b2."")
            ^
Syntax error on line 11 at/before position 12

Error: Unknown symbol - b2.
 

goom

Senior Member
It looks like the problem is that you have used a period "." instead of a comma "," as a separator in both sertxd commands.
 
Top