ecl-logo Documentation

UnitForm

UnitForm[q]shorthand

takes a quantity and converts it into a minimal string representation. IE. Micro Molar -> "[μM]".

Details

    Input
    Output
    General Options
    Attributes
  • Listable

Examples

Basic Examples  (4)

Formats the input into an easy to read string:

Can Convert complex Units into unit form:

Converts to UnitScale:

String unit input:

Additional Examples  (3)

Accepts all Units, including temperatures:

Uses superscripts for inverse Units:

Converts money into an easy to read format as well:

Options  (7)

Brackets  (1)

If Brackets is False, the output will not have parentheses:

Format  (2)

Return a formatted string:

Return a plain string:

Metric  (1)

Do not Convert to UnitScale:

Number  (1)

Choose whether the number is shown or not:

PostfixShorthand  (1)

Set a new rule for how to handle core Units:

PrefixShorthand  (1)

Set a new rule for how to handle metric prefixes:

Attributes  (1)

Listable  (1)

Converts lists of Units into a list of strings: