QuantityMagnitude
QuantityMagnitude[quantity]
gives the amount of the specified quantity.
QuantityMagnitude[quantity,unit]
gives the value corresponding to quantity when converted to unit.
Details
- QuantityMagnitude returns the magnitude of Quantity[magnitude,unit].
- QuantityMagnitude[quantity,unit] is equivalent to QuantityMagnitude[UnitConvert[quantity,unit]].
- QuantityMagnitude accepts TimeSeries, EventSeries, and TemporalData inputs.
Examples
open allclose allBasic Examples (3)
Give the magnitude value of a Quantity:
Scope (5)
Get the values from Quantity expressions in a time series:
QuantityMagnitude returns the dimensionless distribution of a QuantityDistribution:
QuantityMagnitude accepts SparseArray specifications:
QuantityMagnitude accepts structured arrays like QuantityArray and SymmetrizedArray objects:
QuantityMagnitude accepts Association objects:
Properties & Relations (6)
QuantityMagnitude operates on lists of quantities:
QuantityMagnitude threads arguments:
QuantityMagnitude returns the MixedMagnitude specification of a mixed Quantity:
QuantityMagnitude will automatically attempt to interpret an unknown unit string:
When the target unit is specified as a Quantity object, its magnitude will be ignored:
In its two-argument form, the first argument of QuantityMagnitude can also be a unit string:
Text
Wolfram Research (2012), QuantityMagnitude, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityMagnitude.html.
CMS
Wolfram Language. 2012. "QuantityMagnitude." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuantityMagnitude.html.
APA
Wolfram Language. (2012). QuantityMagnitude. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuantityMagnitude.html