Click or drag to resize
CMSEcommerceObjectsPageCheckCurrencyRounding Method
Checks the price has correct maximum decimal places defined in currency configuration.

Namespace: CMS.Ecommerce.Web.UI
Assembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 12.0.0
Syntax
C#
protected bool CheckCurrencyRounding(
	CurrencyInfo currency,
	decimal price
)

Parameters

currency
Type: CMS.EcommerceCurrencyInfo
Currency object with configuration.
price
Type: SystemDecimal
Price to be checked.

Return Value

Type: Boolean
Remarks
Returns also true if the currency is null.
See Also