cvunit
(cvunit value old_unit new_unit)
The cvunit function converts a value from one system of measurement to another. The unit systems and the rules for conversion are provided in a pcad.unt file.
Arguments
The argument value specifies the value to be converted.
The argument old_unit indicates the given unit system.
The argument new_unit determines the target unit system.
Return Value
If successful, the function returns the resulting value. It the conversion fails, it returns nil.
Note: The conversion will fail because one or both unit specifications are unknown in the pcad.unt file. Also, the function may fail when incompatible unit systems have been passed to the function (for example, when trying to convert grams to minutes).
: (cvunit 1 "minute" "second")
60.00