
Originally Posted by
rossfree
Not knowing the size of B, I've used DIV32. B can be any integer up to 65534.
A VAR WORD
B VAR WORD
A = B * 100 'A is temporary storage of computation
A = DIV32 558 'using DIV32... B can be any integer up to 65534
A = A / 100 'final result is placed in variable A as an integer... any
'remainder will be discarded.
Hope this helps,
Ross
Bookmarks