Instance Methodswift 6.0.3FoundationInternationalization->FoundationEssentials
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> Decimal.FormatStyle.Attributed
func locale(_ locale: Locale) -> Decimal.FormatStyle.Attributed
s20FoundationEssentials7DecimalV0A20InternationalizationE11FormatStyleV10AttributedV6localeyAhA6LocaleVF
What are these?6WK3C
import FoundationEssentials
import FoundationInternationalization
struct Attributed
struct Decimal
struct FormatStyle
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
init(from decoder: any Decoder) throws
func format(_ value: Decimal) -> AttributedString
Returns an attributed string with NumberFormatAttributes.SymbolAttribute
and NumberFormatAttributes.NumberPartAttribute
.