I'm working on a little recipe app for a client and she wants it to be able to convert metric weights and measures to imperial (and vice-versa), as one might expect. However, in cookery it appears that accuracy is not an issue; rounding is more important, but there are no hard-and-fast rules that I can work with.
For example, converting milliliters to fluid ounces is relatively consistent up to about 16fl oz, and then the direct relationship is dumped in favour of saying "16fl oz == 500ml" instead of whatever the accurate metric value might happen to be.
I'm possibly faced with writing a long, arduous class to deal with this so I thought I would ask you guys if you know of anything that already exists that might be a solution? Have check PEAR libs and no dice there.
Fingers crossed then...