What is the best/most elegant way to abstract out the conversion of units of measures in the client, based on a user-preferred unit of measure setting?
For example,
You might check out this port of Ruby Units to Javascript:
https://github.com/gentooboontoo/js-quantities