currencyFormatting
public protocol currencyFormatting
Protocol for currency formatting, providing locale and formatting functionality.
-
The locale used for formatting.
Declaration
Swift
var locale: Locale { get }
-
Formats a Decimal value as a currency string.
Declaration
Swift
func format(_ value: Decimal) -> String?
Parameters
value
The decimal value to format.
Return Value
The formatted currency string, or nil if formatting fails.