Units
GetUnit
get unit information
Calling Sequence
Parameters
Description
Examples
GetUnit(unit, opt1, opt2, ...)
unit
-
symbol; unit name
opt1, opt2, ...
(optional) options names where opt1, opt2, ... are 'abbreviation', or 'abbreviations', 'context', 'conversion', 'default', 'plural', 'prefix', 'spelling', 'spellings', 'symbol', 'symbols'; specify options of the given unit
The GetUnit(unit) function returns the default unit name and an expression sequence of equations for only the options that recreate the unit if given as options to the AddUnit function.
The GetUnit(unit, opt1, opt2, ...) function, where each opti is an option name, returns an expression sequence of equations indicating the values of only the opti specified in the calling sequence. For a description of each option, see Units,AddUnit.
The GetUnit(unit, 'context') function is a convenient way to determine the default context of unit.
with⁡Units:
Automatically loading the Units[Simple] subpackage
GetUnit⁡'ounceavoirdupois'
ounce,default=true,prefix=none,abbreviation=none,conversion=45359237⁢gramSI1600000,spelling=ounce,abbreviations=∅,context=avoirdupois,spellings=ounce,ounces,symbol=oz,symbols=oz,plural=ounces
GetUnit⁡'ounceavoirdupois','default','symbols','symbol'
ounce,default=true,symbols=oz,symbol=oz
GetUnit⁡'ounceUS_liquid','default','symbols','symbol'
ounce,default=false,symbols=oz,symbol=oz
GetUnit⁡'meter','spellings','spelling','plural'
meter,spellings=meter,meters,metre,metres,spelling=meter,plural=meters
GetUnit⁡'atmospheretechnical'
atmosphere,default=false,prefix=none,abbreviation=at,conversion=98066500⁢gramSImetreSI⁢secondSI2,spelling=atmosphere,abbreviations=at,context=technical,spellings=atmosphere,atmospheres,symbol=atm,symbols=atm,atmos,plural=atmospheres
GetUnit⁡'atmospheretechnical','symbol','abbreviation'
atmosphere,symbol=atm,abbreviation=at
See Also
Units/Commands
Units/Index
Units[AddUnit]
Units[GetUnits]
Units[HasUnit]
Download Help Document