working with USD as base currency (only free option)
Two step calculation to convert from Canadian dollar input to desired output
1: Divide user input (CAD) by CAD exchange rate to get the value in USD. This lets us work with the other provided exchange rates since they refer to USD values.
2: Multiply the new value by desired target exchange rate to get final converted value.
working with USD as base currency (only free option) Two step calculation to convert from Canadian dollar input to desired output 1: Divide user input (CAD) by CAD exchange rate to get the value in USD. This lets us work with the other provided exchange rates since they refer to USD values. 2: Multiply the new value by desired target exchange rate to get final converted value.