Group Abstract Group Abstract

Message Boards Message Boards

0
|
9K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

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

Posted 11 years ago

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?

POSTED BY: Red Ryder
4 Replies
Posted 11 years ago
POSTED BY: Red Ryder
POSTED BY: David Reiss
Posted 11 years ago

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

POSTED BY: Red Ryder
Posted 11 years ago
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).

POSTED BY: Sandu Ursu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard