Instance Property

zeroPadsFractionDigits

Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation.

Declaration

@property BOOL zeroPadsFractionDigits;

Discussion

Displaying values using zero pad fraction digits causes a consistent number of fraction digits are displayed, causing updating displays to remain more stable. For instance, if the adaptive algorithm is used, this option formats 1.19 and 1.2 GB as 1.19 GB and 1.20 GB, respectively, while without the option the latter would be displayed as 1.2 GB.

The default value is NO.

See Also

Setting Formatting Styles

formattingContext

Specify the formatting context for the formatted string.

countStyle

Specify the number of bytes to be used for kilobytes.

allowsNonnumericFormatting

Determines whether to allow more natural display of some values.

includesActualByteCount

Determines whether to include the number of bytes after the formatted string.

adaptive

Determines the display style of the size representation.

allowedUnits

Specify the units that can be used in the output.

includesCount

Determines whether to include the count in the resulting formatted string.

includesUnit

Determines whether to include the units in the resulting formatted string.