I struggle with maths (you may ask what am I doing here) and need help.
I am using a PIC with a 10 bit ADC as a volt meter, on a battery monitoring circuit. I need to read up to 100 volts DC, and display it on a LCD. I have got the circuit to run nicely, with 100 volts showing up as decimal 1024 (or near on), on the display after a divide by 20 resistor chain. What I actually need the display to show is 100.0, can anybody please point me in the right direction, to some example code that will do that for me? TIA

Mark in Spain.