UnitConvert
Function |
UnitConvert(value, unit)
|
Use
The UnitConvert() function returns a number converted to the specified units. The units must be given as the number 1 with the unit you wish to convert to.
It accomplishes the same thing as the to keyword.
Examples
UnitConvert(1 ft, 1 in) = 12 in
UnitConvert(5 ft, 1 in) = 60 in
UnitConvert(10 lb, 1 N) = 44.482 N
UnitConvert is included by default in each file as part of the Math library.
See also: