CommonUnits
✖
CommonUnits
converts quantity1 through quantityn to common units across compatible dimensions.
Details

- CommonUnits will convert the input list's units to a common unit for each subset of input units with common dimensions.
- CommonUnits uses heuristic methods to determine a unit that best fits the input data.
- Operations involving currency units require internet connectivity.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases
Use CommonUnits with a list of Quantity objects:

https://wolfram.com/xid/0h2jppm1us-bxlv0z


https://wolfram.com/xid/0h2jppm1us-efn935

Use CommonUnits with a QuantityArray object:

https://wolfram.com/xid/0h2jppm1us-bu3c4x


https://wolfram.com/xid/0h2jppm1us-kmxud

CommonUnits can convert quantities with IndependentUnit specifications:

https://wolfram.com/xid/0h2jppm1us-cpx8mq


https://wolfram.com/xid/0h2jppm1us-woxtq


https://wolfram.com/xid/0h2jppm1us-crm92e

CommonUnits can convert mixed quantities:

https://wolfram.com/xid/0h2jppm1us-cxrmld


https://wolfram.com/xid/0h2jppm1us-hir06


https://wolfram.com/xid/0h2jppm1us-kyadpi

Properties & Relations (3)Properties of the function, and connections to other functions
CommonUnits converts quantities sharing the same UnitDimensions:

https://wolfram.com/xid/0h2jppm1us-iu5yek


https://wolfram.com/xid/0h2jppm1us-e5bko5

CommonUnits acts on subsets of quantities sharing the same UnitDimensions:

https://wolfram.com/xid/0h2jppm1us-efbpjg


https://wolfram.com/xid/0h2jppm1us-ldqlys

CommonUnits converts quantities with dimensionless units to pure numbers:

https://wolfram.com/xid/0h2jppm1us-kpthv9


https://wolfram.com/xid/0h2jppm1us-u6kz5t

Wolfram Research (2012), CommonUnits, Wolfram Language function, https://reference.wolfram.com/language/ref/CommonUnits.html.
Text
Wolfram Research (2012), CommonUnits, Wolfram Language function, https://reference.wolfram.com/language/ref/CommonUnits.html.
Wolfram Research (2012), CommonUnits, Wolfram Language function, https://reference.wolfram.com/language/ref/CommonUnits.html.
CMS
Wolfram Language. 2012. "CommonUnits." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CommonUnits.html.
Wolfram Language. 2012. "CommonUnits." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CommonUnits.html.
APA
Wolfram Language. (2012). CommonUnits. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CommonUnits.html
Wolfram Language. (2012). CommonUnits. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CommonUnits.html
BibTeX
@misc{reference.wolfram_2025_commonunits, author="Wolfram Research", title="{CommonUnits}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CommonUnits.html}", note=[Accessed: 30-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_commonunits, organization={Wolfram Research}, title={CommonUnits}, year={2012}, url={https://reference.wolfram.com/language/ref/CommonUnits.html}, note=[Accessed: 30-March-2025
]}