Thank you Mark. I had been looking at those posts before I posted my question to the forum, and I don't actually follow some of the concepts.

Looking at all posts retrieved with a Quanta search didn't help much either, as most posts have code where the user seems to know how to perform the quantization but offers no explanation.

Lets take the first division, Vin/Vout, the problem I am finding is as follows:

Since Vin is 5V or 1023 in ADC scale values, I need to do 1023/Vout. To get a 2 decimal precision I would need to do ( 1023*100/Vout ) / 100, but multiplying 1023*100 is already above 65535. Now, the internal multiplication result will be in 32 bits, so I thought of using Div32:

Vin = 1023 * 100
temp = Div32 Vout

but that doesn't work if Vout is a low number, because the value of temp would exceed 65535.

So at best I can do:

Vin = 1023 * 64
temp = Div32 Vout

But that doesn't seem good to me either.

Any ideas?