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