got that wrong
frac = volts*1000/498 mod 100 is what you want ie 1469 mod 100 = 69 but it may cause overflows
volts_in = (volts_in * 100) / 498 (should be ok internal mult/div is 32 bit in pbp3 anyway)
try lcdout $fe, $c0, "voltage is: ", volts_in/10, ".", dec1 volts_in




Bookmarks