thanks shimask
ive done this:
The only problem im having now is with rounding. If the real percentage is 65.28% id like it to display 65.3%, but of course im getting 65.2 because its just truncating the result.Code:a VAR WORD b VAR WORD pct VAR WORD temp VAR WORD temp=a*1000 pct=DIV32 b
Bookmarks