QuantityMagnitude

QuantityMagnitude[quantity]

gives the amount of the specified quantity.

QuantityMagnitude[quantity,unit]

gives the value corresponding to quantity when converted to unit.

Details

Examples

open allclose all

Basic Examples  (3)

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[1]:=
Click for copyable input
Out[1]=

Find the value of various quantities in kilograms:

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

Scope  (5)

Properties & Relations  (6)

See Also

QuantityUnit  Quantity  MixedMagnitude  QuantityForm

Tutorials

Introduced in 2012
(9.0)