in Swift, use
formattedmethods directly on the types you want to format, optionally usingFormatStyleand its subtypes to customize formatter output. This approach supports dates, integers, floating-point numbers, measurements, sequences, and person name components. Foundation caches identically-configured formatter instances internally, allowing you to focus on your appโs formatting needs.Data Formatting | Apple Developer Documentation https://developer.apple.com/documentation/foundation/data_formatting
Decimal.FormatStyle(viaParseableFormatStyle)Decimal.FormatStyle.Attributed- [
Decimal.FormatStyle.Currency](https://developer.apple.com/documentation/foun