Unitless
Unitless[expr]⟹unitlessExpr
removes any Units from an expr to return only the numeric value.
Unitless[expr,targetUnit]⟹unitlessExpr
removes the Units from an expr after first converting it to the targetUnit Units.
Details
Input
Output
Examples
Basic Examples (3)
Additional Examples (10)
If Unitless is provided with items that are already numeric, they are left untouched:
Remove all Units from expression:
Strip the untis off of a quantity distribution:
Convert and then strip the untis off of a quantity distribution:
Strip the units off of a multi-variate quantity distribution:
Convert and then strip the units off of a multi-variate quantity distribution:
Strip the units off of a data distribution:
Convert and then strip the units off of a data distribution:
Given QuantityFunction, return its pure function:
Given QuantityFunction and conversion:
Attributes (3)
Possible Issues (5)
Incompatible (1)
Physical Constants (4)
Physical constants are represented behind the scences as 1*PhysicalConstant, where PhysicalConstant is the unit:
Asking for their numeric value will return 1:
They can be converted to any compatible unit:
To get a physical constant's numeric value in some other unit, you must first convert to the desired units: