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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static double RoundTo(
	double price,
	int currencyId
)

Parameters

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

Return Value

Type: Double
See Also