Contents

fractionLength(_:)

Returns a precision that constrains formatted values to a given number of allowed digits in the fraction part.

Declaration

static func fractionLength(_ length: Int) -> NumberFormatStyleConfiguration.Precision

Parameters

  • length:

    The number of digits to use when formatting the fraction part of a number.

Return Value

A precision that constrains formatted values to a given number of allowed digits in the fraction part.

See Also

Precision configurations