CMSEcommerceObjectsPageCheckCurrencyRounding Method |
Checks the price has correct maximum decimal places defined in currency configuration.
Namespace: CMS.Ecommerce.Web.UIAssembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 11.0.0
Syntaxprotected 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
RemarksReturns also true if the currency is null.
See Also