I'm pretty new to PIC programming and I don't understand everything DT has suggested but I think that accuracy could be improved a little by rounding before discarding your unwanted decimals (/10 - scaling down). It is pretty trivial to do codewise.