I have enabled multiple currencies in my EE production Org. Advanced Currency Management is also enabled. I am using Manage Dated exchange rate. USD is my corporate currency. User currency is also in USD. I want to show the conversion of USD to GBP on my visualforce page. It will be like this
$2240*(Conversion rate of GBP that is 0.76) = Converted Amount(GBP)
Where, $2240 is static Value. I want to take this conversion rate(0.76) in Visualforce Page to show its multiplication with static value to get converted rate in GBP. How can we take this conversion rate(0.76) on visualforce page?
Class
public class myExchangeRateController {
private final CurrencyType rate;
public myExchangeRateController(){
rate = ([Select Id, ConversionRate From CurrencyType Where IsoCode = 'GBP']);
}
public CurrencyType getRate() {
return rate;
}
}