CommonUnits

CommonUnits[{quantity1,quantity2,,quantityn}]
converts through to common units across compatible dimensions.

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Convert a list of lengths to a common unit:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Convert all units of length and mass to a common unit:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2012
(9.0)