Convert USD$XYZ/gallon into CAD/L, or vice versa

Input: $3.56/gallon into Canadian dollars per liter

I would like to convert the a price of US gas, which is US dollars per gallon, into Canadian format, which is Canadian cents per liter. How do I do this?

UnitConvert[Quantity[3.56, “USD”], “CAD”]/UnitConvert[Quantity[1, “Gallon”], “Liter”]

or

WolframAlpha["$ 3.56/Gallon in CAD/Liter"]

or just use the content from the last command to ask Wolfram Alpha online (instead of “CAD” you may also write “Canadian cents” to have the result in cents).

Sandu,
Sorry, I wanted help for use on the wolframalpha.com website.

Sandu gave you that answer in his second bit of code. Just type

$ 3.56/Gallon in CAD/Liter

into Wolfram|Alpha:

http://www.wolframalpha.com/input/?i=%24+3.56%2FGallon+in+CAD%2FLiter

Sandu. How did you learn of the way to format this query? You have saved me so much time in calculating this. Thanks.

David. Sandu must have updated his reply to add that second bit of code (the W|A code) :slight_smile: