Sfairadora

  • Reference Guide

convert_unit

convert_unit(target_unit, value, source_unit)
The function performs a unit conversion.

Parameters

target_unit
Specifies the unit to which the value is to be converted (the type String). For the list of permitted units, see bellow.
value
Value of the type Real to be converted.
source_unit
Specifies the unit in which the value is entered (the type String). For the list of permitted units, see bellow.

Return Value

The function returns a Real value – the value converted to the target-unit.

Permitted Units

"mm", "cm", "dm", "m", "km", "pt", "point", "twip", "in", "`"", "inch", "ft", "foot", "yd", "yard", "mi", "mile"

See Also