Wow, what a complication.
When using microcontrollers with inbuilt ADC, it is much easier to do integer math. If you are, for example, measuring a car battery and your uC has 10 bit ADC, using 5V reference (assuming that your voltage stabilizer has exactly 5V on it's output) all you have to do is to take a resistor divider for sampling your battery voltage, calibrate it that with 20,48V input, your divider has %v on its output. Make 2 (two) consecutive readings,...
Hope that this lights some bulbs ;-)