prints expr with all Quantity expressions using the specified unit display form form.
prints expr using the appropriate combination of the specified unit display forms forms.
- The following unit display forms can be specified: "Abbreviation", "LongForm".
- "SingularForm" can be included as a display form specification to force "LongForm" descriptions to their singular tense.
- If expr is a canonical unit, QuantityForm will print with the specified form of the unit.
- When an input evaluates to QuantityForm[expr], QuantityForm does not appear in the output. »
Examplesopen allclose all
Basic Examples (2)
"LongForm" descriptions will select singular/plural tenses based on the value of each Quantity:
If the first argument is a canonical unit, QuantityForm will print with the specified form of the unit:
Properties & Relations (4)
IndependentUnit specifications do not have special unit display forms:
Possible Issues (2)
Even when an output omits QuantityForm from the top level, it is not stripped from subexpressions:
The output does not have QuantityForm in it:
However, the variable e does have QuantityForm in it, which may affect subsequent evaluations:
Assign variables first and then apply QuantityForm to the result to maintain computability:
Wolfram Research (2012), QuantityForm, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityForm.html.
Wolfram Language. 2012. "QuantityForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuantityForm.html.
Wolfram Language. (2012). QuantityForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuantityForm.html