Click or drag to resize
IRoundingServiceRound Method
Returns rounded price according to the specified currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
decimal Round(
	decimal price,
	CurrencyInfo currency
)

Parameters

price
Type: SystemDecimal
Price to be rounded
currency
Type: CMS.EcommerceCurrencyInfo
Currency which supplies number of decimal places

Return Value

Type: Decimal
See Also