PBP does integer math only. You should rewrite the equation to multiply the A/D converter result by 5000 then divide by 64320 (or multiply by 500 and divide by 6432).
The result will be an integer, so you will lose the fractional part. However, you can get an extra digit of resolution if you modify the formula to something like:
FirstPart = (ADresult * 5000)/6432
HSEROUT [FirstPart/10,".",FirstPart//10]
Bookmarks