Jeremy Leach
Senior Member
Just noticed in manual 2, under variables- mathmatics, the DIG function:
And searching on the forum produced no hits. I've never noticed it before, so just wondered if it's something everyone else has missed ! Could be handy.DIG
The DIG (digit) command returns the decimal value of a specified digit (0-4,
right to left) of a 16 bit number. Therefore digit 0 of ‘67890’ is 0 and digit 3 is ‘7’.
To return the ascii value of the digit simply add ascii “0” to the digit value e.g.
let b1 = b2 DIG 0 + “0”