CurrencyConverterApplyExchangeRate Method |
Applies given exchange rate to monetary amount. If rate is negative, amount is returned with no change.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntaxpublic static decimal ApplyExchangeRate(
decimal amount,
decimal rate
)
Parameters
- amount
- Type: SystemDecimal
Monetary amount. - rate
- Type: SystemDecimal
Exchange rate to be applied.
Return Value
Type:
DecimalAmount converted using given rate.
See Also