QuantityMagnitude

QuantityMagnitude[quantity]
gives the amount of the specified quantity.

QuantityMagnitude[quantity,unit]
gives the value corresponding to quantity when converted to unit.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Give the magnitude value of a Quantity:

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

Get the value of 1 hour in various units:

In[3]:=
Click for copyable input
Out[3]=

Find the value of various quantities in kilograms:

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