QuantityUnit

QuantityUnit[quantity]

returns the unit associated with the specified quantity.

Details

Examples

open allclose all

Basic Examples  (1)

Give the unit part of a Quantity:

Scope  (4)

Get the units from Quantity expressions in a time series:

QuantityUnit returns the unit specification of a QuantityDistribution:

QuantityUnit accepts structured arrays like QuantityArray and SymmetrizedArray objects:

QuantityUnit accepts SparseArray and Association objects:

Properties & Relations  (4)

QuantityUnit operates on lists of quantities:

QuantityUnit returns "DimensionlessUnit" for NumericQ arguments:

QuantityUnit returns the MixedUnit specification of a mixed Quantity:

QuantityUnit always returns a unit string in its canonical form:

Introduced in 2012
 (9.0)