Contents

includesUnit

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

Declaration

var includesUnit: Bool { get set }

Discussion

If set to true and includesCount is set to false, no count is displayed. For example, a value of 723 KB is formatted as KB.

You can get the set this property to true and the includesCount to true individually to get both parts, separately. Note that putting them together yourself via string concatenation may be incorrect for some locales.

The default value is true.

See Also

Setting Formatting Styles