in reply to
(tye)Re2: The Definitive Unit Conversion Script
in thread The Definitive Unit Conversion Script
"Definitive" in the sense that it effortlessly converts into all related units, not in the amount of units handled. :)
Of course it would be nice to add some limited parsing and intrinsic "understanding" of units and I can see how I'd go about implementing the basic idea (split into numerator and denominator, convert, divide), but how complex a unit specification should it be able to handle? I don't want to add so much weight that it turns into a small expression evaluator. I'm thinking one unit in the numerator, one in the denominator, and one power given for each sounds like a viably complex, sufficiently flexible spec.
Makeshifts last the longest.