Initializerswift 6.0.3FoundationInternationalization
init(from:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s30FoundationInternationalization30NumberFormatStyleConfigurationO8NotationV4fromAEs7Decoder_p_tKcfc
What are these?1SDSY
import FoundationInternationalization
struct Notation
enum NumberFormatStyleConfiguration
protocol Decoder
A type that can decode values from a native format into in-memory representations.
static var automatic: NumberFormatStyleConfiguration.Notation { get }
static var compactName: NumberFormatStyleConfiguration.Notation { get }
Formats the number with localized prefixes or suffixes corresponding to powers of ten. Rounds to integer while showing at least two significant digits by default. For example, “42.3K” for 42300 for the “en_US” locale.
static var scientific: NumberFormatStyleConfiguration.Notation { get }
var description: String { get }