Contents

fractionLength(_:)

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

Declaration

static func fractionLength<R>(_ limits: R) -> NumberFormatStyleConfiguration.Precision where R : RangeExpression, R.Bound == Int

Parameters

  • limits:

    A range from the minimum to the maximum number of digits to use when formatting the fraction part of a number.

Return Value

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

See Also

Precision configurations