Instance Method

isNull

Returns a Boolean value indicating whether the unit is null.

Declaration

- (BOOL)isNull;

Return Value

YES if the unit is null; otherwise, NO.

Discussion

Null units occur only when you create compound units in which all the units cancel out. For example, if you tried to create a unit by dividing deciliters by liters (dL/L), you would end up with a null unit.

See Also

Working with Units

+ unitFromString:

Returns the unit instance described by the provided string.

unitString

A string representation of the unit object.