Quote Originally Posted by rossfree View Post
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
Thank you Ross!

Thanks for your fast answer!

The routine works, but I would have the necessity to visualize on LCD the data drawn with 2 decimal.

Would you know how to help me?