You can use the formula:
At say 2.5V the display will read 2.49 and the variable "volts" will hold 249.Code:volts = 50000 / 255 * A/D Value if volts DIG 1 => 5 then volts = volts + 100 endif volts = volts / 100 debug cmd,line3,dec1 volts/100,".",dec2 volts//100
Bookmarks