The solution should be easy:

You want to convert an ASCII-string to a decimal number.

You forgot, a ASCII-number has not the value from 0 to 9, but from $30 to $39. So you must truncate some bits !

Try FL=...(myvar[...] & $F) * 10... !!!!