Instance Property インスタンスプロパティ

allowsFractionalUnits

A Boolean indicating whether non-integer units may be used for values. 非整数単位が値として使われるかもしれないかどうかを指し示すブール値。

Declaration 宣言

var allowsFractionalUnits: Bool { get set }

Discussion 議論

Fractional units may be used when a value cannot be exactly represented using the available units. For example, if minutes are not allowed, the value “1h 30m” could be formatted as “1.5h”. ある値が利用可能な単位を使って正確に表されることができない時に、小数の単位が使われるかもしれません。例えば、分が許可されないならば、値 “1h 30m” は “1.5h” のように書式設定できるでしょう。

The default value of this property is false. このプロパティの省略時の値はfalseです。

See Also 参照

Configuring the Formatter Options フォーマッタオプションを構成設定する