MixedUnit

MixedUnit[{unit1,unit2,,unitn}]

represents a mixed-unit expression consisting of units unit1 through unitn.

Details

Examples

open allclose all

Basic Examples  (2)

Represent the mixed quantity 1 foot, 2 inches:

Use it in Quantity operations:

MixedUnit can be used as a target unit specification in functions like UnitConvert:

Scope  (2)

MixedUnit can be used in conjunction with MixedMagnitude in Quantity expressions:

MixedUnit can be used in conjunction with MixedMagnitude in QuantityArray expressions:

Properties & Relations  (9)

Additions of Quantity expressions involving MixedMagnitude and MixedUnit specifications automatically convert some of them:

QuantityDistribution automatically converts mixed Quantity expressions to non-mixed Quantity expressions:

MixedUnit specifications can be extracted using QuantityUnit:

KnownUnitQ returns True for valid MixedUnit specifications:

It returns False for invalid MixedUnit specifications:

CompatibleUnitQ returns True for MixedUnit specifications having identical unit dimensions:

It returns False for MixedUnit specifications having different unit dimensions:

Use UnitConvert to convert mixed Quantity expressions to non-mixed Quantity expressions:

Convert to mixed-unit form:

Reproduce the results of DMSList:

Conversion into mixed units effectively performs a NumberDecompose operation:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_mixedunit, author="Wolfram Research", title="{MixedUnit}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/MixedUnit.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_mixedunit, organization={Wolfram Research}, title={MixedUnit}, year={2016}, url={https://reference.wolfram.com/language/ref/MixedUnit.html}, note=[Accessed: 21-December-2024 ]}