Cool! Glad it worked. What I described comes up pretty often when you have to scale one linear function (from a sensor etc) to another (readout etc). The trick of scaling an integer by some factor before division is useful in many applications as well.