WLJS LogoWLJS Notebook

QuantityForm

QuantityForm[expr, form] prints expr with all Quantity expressions using the specified unit display form form.

  • QuantityForm[expr, {forms}] prints expr using the appropriate combination of the specified unit display forms forms.

Examples

Abbreviated units:

QuantityForm[Quantity[5, "Meters"], "Abbreviation"]

Full names:

QuantityForm[Quantity[10, "Kilometers/Hour"], "LongName"]

Multiple forms:

QuantityForm[Quantity[9.8, "Meters/Seconds^2"], {"Abbreviation"}]

Please visit the official Wolfram Language Reference for more details.

On this page