Instance Property


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


@property BOOL zeroPadsFractionDigits;


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


Specify the formatting context for the formatted string.


Specify the number of bytes to be used for kilobytes.


Determines whether to allow more natural display of some values.


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


Determines the display style of the size representation.


Specify the units that can be used in the output.


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


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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software