Quote Originally Posted by HenrikOlsson View Post
Percent = Value ** 1600 is one option but you're pissing away a lot of resolution.
Code:
pc1 = CH1_PWM ** 1600                                             
lcdout $FE,$80,"CH1"," ",dec PC1
This works nicely, apart from one small issue, in that it won't display 100. It reached 99 and that's it !

By resolution, I didn't realise that you were referring to the decimal resolution displayed, but was referring to the maths (I assume that whatever divisions were happening the increments for each 1% would be rounded down to an integer as PBP doesn't support FP maths).

Is there a way where I can display 100 for 4095 steps ?