CurrencyInfoProvider RoundTo Method (Double, Int32)Kentico 8.0 API Reference
Returns rounded price according to the specified currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

price
Type: OnlineSystem Double
Price to be rounded
currencyId
Type: OnlineSystem Int32
ID of the currency which supplies 'round to' parameter - number of digits the price is rounded to

Return Value

Type: OnlineDouble
See Also