Click or drag to resize
CurrencyInfoProviderRoundTo Method (Double, CurrencyInfo)
Returns rounded price according to the specified currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
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: Double
See Also