units_get_si_unit¶
units_get_si_unit returns the SI unit for the given unit.
- ssUnitSI = units_get_si_unit(oUnit, ssUnit)
Return Value
ssUnitSI is a unit from the unit table, column “SI Unit” (see Unit Converter). If the unit is unknown the return value is an empty string.
Parameters
- oUnit
Is the unit converter object, returned by units.
- ssUnit
ssUnit is one of the defined units (see Unit Converter).
Comment
The units_get_si_unit(oUnit, ssUnit) can also be invoked in the following
form: oUnit.si(ssUnit).
Example
o = units()
units_get_si_unit(o, "HP")
W
History
Version |
Description |
|---|---|
R2013.11 |
New. |
See also
id-1130398