ecl-logo Documentation

UnitsQ

UnitsQ[item]validUnit

tests if the item is in the form of Units known to Emerald's EmeraldUnits.m package.

UnitsQ[item,compatibleUnit]validUnit

tests if the item is compatible with compatibleUnit.

Details

    Input
    Output
    Attributes
  • Listable

Examples

Basic Examples  (2)

Returns true if the given item has Units known to the EmeraldUnits.m pacakge:

Metric prefixes work:

Attributes  (1)

Listable  (1)

The function is listable:

Overloads  (1)

Can also test if the item's UnitBase matches a given base unit: