CurrencyInfoProviderRoundTo Method (Double, CurrencyInfo) |
Returns rounded price according to the specified currency.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax public static double RoundTo(
double price,
CurrencyInfo currencyObj
)
Parameters
- price
- Type: SystemDouble
Price to be rounded - currencyObj
- Type: CMS.EcommerceCurrencyInfo
Currency which supplies 'round to' parameter - number of digits the price is rounded to
Return Value
Type:
DoubleSee Also