Initializerswift 6.0.3FoundationInternationalization
init(locale:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
init(locale: Locale = .autoupdatingCurrent)
init(locale: Locale = .autoupdatingCurrent)
s30FoundationInternationalization18IntegerFormatStyleV6localeACyxG0A10Essentials6LocaleV_tcfc
What are these?3V9OQ
import FoundationInternationalization
struct IntegerFormatStyle<Value> where Value : BinaryInteger
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
var attributed: IntegerFormatStyle<Value>.Attributed { get }
var locale: Locale
func decimalSeparator(strategy: IntegerFormatStyle<Value>.Configuration.DecimalSeparatorDisplayStrategy) -> IntegerFormatStyle<Value>
func grouping(_ group: IntegerFormatStyle<Value>.Configuration.Grouping) -> IntegerFormatStyle<Value>
func notation(_ notation: IntegerFormatStyle<Value>.Configuration.Notation) -> IntegerFormatStyle<Value>
func precision(_ p: IntegerFormatStyle<Value>.Configuration.Precision) -> IntegerFormatStyle<Value>
func rounded(rule: IntegerFormatStyle<Value>.Configuration.RoundingRule = .toNearestOrEven, increment: Int? = nil) -> IntegerFormatStyle<Value>
func scale(_ multiplicand: Double) -> IntegerFormatStyle<Value>
func sign(strategy: IntegerFormatStyle<Value>.Configuration.SignDisplayStrategy) -> IntegerFormatStyle<Value>
typealias Configuration = NumberFormatStyleConfiguration