units

get the units of given quantity


Parameters

units value :unit :quantity

Attributes

baseget base units

Returns

  • :unit

Examples

copy
units 3`m ; => `m units `m2 ; => `m2 units 8`J/s ; => `J/s units 7`W ; => `W

copy
units.base 3`m ; => `m units.base `m2 ; => `m2 units.base 8`J/s ; => `J/s units.base 7`W ; => `J/s

copy
specify 'ff 3`items units 3`ff ; => `items units.base 3`ff ; => `items units.base 3`ff.ha ; => `items.m2

copy
specify 'kk 3`m2 units 3`kk ; => `kk units.base 3`kk ; => `m2

Related