Contents

String.LocalizationValue.Placeholder.double

The double-precision floating-point type, as used for replacement values with the localized string placeholder syntax.

Declaration

case double

Discussion

To insert a double into a placeholder, use the syntax \(placeholder: .double).

The various String(localized:) initializers apply a locale-appropriate FormatStyle to the numeric value, based on the locale: parameter or the LocalizedStringResource.

See Also

Placeholder types