Instance Methodswift 6.0.3FoundationInternationalization->FoundationEssentials
format(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func format(_ value: Decimal) -> String
func format(_ value: Decimal) -> String
s20FoundationEssentials7DecimalV0A20InternationalizationE11FormatStyleV6formatySSACF
What are these?285MI
import FoundationEssentials
import FoundationInternationalization
struct FormatStyle
struct Decimal
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(locale: Locale = .autoupdatingCurrent)
var attributed: Decimal.FormatStyle.Attributed { get }
var locale: Locale
var parseStrategy: Decimal.ParseStrategy<Decimal.FormatStyle> { get }
func consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Decimal)?
func decimalSeparator(strategy: Decimal.FormatStyle.Configuration.DecimalSeparatorDisplayStrategy) -> Decimal.FormatStyle
func grouping(_ group: Decimal.FormatStyle.Configuration.Grouping) -> Decimal.FormatStyle
func locale(_ locale: Locale) -> Decimal.FormatStyle
func notation(_ notation: Decimal.FormatStyle.Configuration.Notation) -> Decimal.FormatStyle
func precision(_ p: Decimal.FormatStyle.Configuration.Precision) -> Decimal.FormatStyle
func rounded(rule: Decimal.FormatStyle.Configuration.RoundingRule = .toNearestOrEven, increment: Int? = nil) -> Decimal.FormatStyle
func scale(_ multiplicand: Double) -> Decimal.FormatStyle
func sign(strategy: Decimal.FormatStyle.Configuration.SignDisplayStrategy) -> Decimal.FormatStyle
struct Attributed
struct Currency
struct Percent
typealias Configuration = NumberFormatStyleConfiguration
typealias RegexOutput = Decimal