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:

Wolfram Research (2012), QuantityUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityUnit.html.

Text

Wolfram Research (2012), QuantityUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityUnit.html.

CMS

Wolfram Language. 2012. "QuantityUnit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuantityUnit.html.

APA

Wolfram Language. (2012). QuantityUnit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuantityUnit.html

BibTeX

@misc{reference.wolfram_2024_quantityunit, author="Wolfram Research", title="{QuantityUnit}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/QuantityUnit.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_quantityunit, organization={Wolfram Research}, title={QuantityUnit}, year={2012}, url={https://reference.wolfram.com/language/ref/QuantityUnit.html}, note=[Accessed: 22-November-2024 ]}