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... !!!!
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... !!!!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks