Contents

integerLength(_:)

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

Declaration

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

Parameters

  • length:

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

Return Value

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

See Also

Precision configurations