Michael Ulm wrote: > Martin Boese wrote: >> My converter converts alcoholic beverages by effect *). In addition to >> the source and destination beverage it converts the used containers, >> too. Google can't do this yet ;-) >> >> Example: >> >> $ ruby convert.rb 1 bottle of wine into glasses of beer >> 1 bottle (0.75l) of wine (VOL 12%) effects equal to 6.06 glasses (2.00l) >> of beer (VOL 4%) >> >> $ ruby convert.rb 1 bucket of beer into cups of martini >> 1 bucket (10.00l) of beer (VOL 4%) effects equal to 26.47 cups (2.65l) >> of martini (VOL 17%) >> > > Either your glasses and cups are way bigger than mine, there seems to be > a bug in your output code. > Oops, I understand the output now, the amount in the brackets is the total amount in liters, not the amount per container. Sorry for the noise. Regards, Michael