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:

Get the value of 1 hour in various units:

Find the value of various quantities in kilograms:

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:

Wolfram Research (2012), QuantityMagnitude, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityMagnitude.html.

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

BibTeX

@misc{reference.wolfram_2024_quantitymagnitude, author="Wolfram Research", title="{QuantityMagnitude}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/QuantityMagnitude.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_quantitymagnitude, organization={Wolfram Research}, title={QuantityMagnitude}, year={2012}, url={https://reference.wolfram.com/language/ref/QuantityMagnitude.html}, note=[Accessed: 21-November-2024 ]}