Skip to content

Decimal Extensions

These extensions can be found within the namespace UmbCheckout.Shared.Extensions

Returns the decimal as currency, with the currencyโ€™s symbol and number of decimal places, in the current culture (or the culture you pass). This can be combined with GetIsoCurrencySymbol

string FormatCurrency(this decimal amount, string? currencyCode, CultureInfo? culture = null)
Example
Model.SubTotal.FormatCurrency(CultureInfo.CurrentUICulture.GetISOCurrencySymbol())