14 mod 10 = 4 mod gives you the remainder after the division ie ten goes into 14 once with 4 leftover , its not what you want
frac = volts*10 mod 100 is what you want ie 1469 mod 100 = 69 but
the following is easier
forget the frac
volts_in = (volts_in * 10) / 498
try lcdout $fe, $c0, "voltage is: ", volts_in/100, ".", dec2 volts_in
Bookmarks