Click or drag to resize
CMSPaymentGatewayProviderRoundPrice Method
Transform given price into string representation according to given formatProvider and formatString.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
protected string RoundPrice(
	decimal price,
	IFormatProvider formatProvider = null,
	string formatString = "{0:0.00}"
)

Parameters

price
Type: SystemDecimal
Price to transform
formatProvider (Optional)
Type: SystemIFormatProvider
Formatting information
formatString (Optional)
Type: SystemString
Formatting string

Return Value

Type: String
See Also