Contents

locale(_:)

Modifies the format style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Decimal.FormatStyle.Percent

Parameters

  • locale:

    The locale to apply to the format style.

Return Value

A decimal percent format style with the provided locale.

Discussion

Use this format style to change the locale used by an existing format style. To instead determine the locale used by this format style, use the locale property.

See Also

Customizing style behavior