Instance Methodswift 6.0.3FoundationInternationalization
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>
s30FoundationInternationalization24FloatingPointFormatStyleV6localeyACyxG0A10Essentials6LocaleVF
What are these?9T1AR
where Value:BinaryFloatingPoint
import FoundationInternationalization
struct FloatingPointFormatStyle<Value> where Value : BinaryFloatingPoint
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.
protocol BinaryFloatingPoint : ExpressibleByFloatLiteral, FloatingPoint
A radix-2 (binary) floating-point type.
var parseStrategy: FloatingPointParseStrategy<FloatingPointFormatStyle<Value>> { get }
func consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Value)?
func format(_ value: Value) -> String
struct Attributed
struct Currency
struct Percent
typealias RegexOutput = Value