Skip to content

Initializer

init(lengthLimits:roundingRule:roundingIncrement:)

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
Displays the remaining part as the fractional part of the smallest unit.
init<Range>(lengthLimits: Range, roundingRule: FloatingPointRoundingRule = .toNearestOrEven, roundingIncrement: Double? = nil) where Range : RangeExpression, Range.Bound == Int

Parameters

lengthLimits

The range of the length of the fractional part.

roundingRule

Rounding rule for the remaining value.

roundingIncrement

Rounding increment for the remaining value.