Skip to content

Type Method

accountingAlways(showZero:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
A sign display strategy to use accounting principles, with a configurable behavior for handling zero values.
static func accountingAlways(showZero: Bool = false) -> CurrencyFormatStyleConfiguration.SignDisplayStrategy

Parameters

showZero

A Boolean value that indicates whether to show the sign symbol on zero values. Defaults to false.

Return Value

A strategy that uses accounting principles, and the specified handling of zero values.