CMSPaymentGatewayProviderRoundPrice Method |
Transform given price into string representation according to given formatProvider and formatString.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax 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:
StringSee Also