Yeah this is so true.
I worked on a system where we had to support imperial and metric units. It was done in a pretty bolted on fashion with if statements all over the place. And sometimes it isn't even clear if it could be done in any other way.
Any HN'ers have suggestions on how to do it elegantly.