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: 13.0.131
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