WOLFRAM

MixedUnit[{unit1,unit2,,unitn}]

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

Details

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Represent the mixed quantity 1 foot, 2 inches:

Out[2]=2

Use it in Quantity operations:

Out[3]=3

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

Out[1]=1

Scope  (2)Survey of the scope of standard use cases

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

Out[1]=1

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

Out[1]=1

Properties & Relations  (9)Properties of the function, and connections to other functions

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

Out[1]=1
Out[2]=2
Out[3]=3

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

Out[1]=1
Out[2]=2
Out[3]=3

MixedUnit specifications can be extracted using QuantityUnit:

Out[1]=1
Out[2]=2

KnownUnitQ returns True for valid MixedUnit specifications:

Out[1]=1

It returns False for invalid MixedUnit specifications:

Out[2]=2

CompatibleUnitQ returns True for MixedUnit specifications having identical unit dimensions:

Out[1]=1
Out[2]=2

It returns False for MixedUnit specifications having different unit dimensions:

Out[3]=3
Out[4]=4

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

Out[1]=1
Out[2]=2
Out[3]=3

Convert to mixed-unit form:

Out[1]=1
Out[2]=2

Reproduce the results of DMSList:

Out[1]=1
Out[2]=2

Conversion into mixed units effectively performs a NumberDecompose operation:

Out[1]=1
Out[2]=2
Wolfram Research (2016), MixedUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/MixedUnit.html.
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.

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.

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

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

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_mixedunit, organization={Wolfram Research}, title={MixedUnit}, year={2016}, url={https://reference.wolfram.com/language/ref/MixedUnit.html}, note=[Accessed: 30-May-2025 ]}

@online{reference.wolfram_2025_mixedunit, organization={Wolfram Research}, title={MixedUnit}, year={2016}, url={https://reference.wolfram.com/language/ref/MixedUnit.html}, note=[Accessed: 30-May-2025 ]}