(cvunit value from to)
Convert this unit to that unit.
This function converts the value from one type of measurement to another. The value is the number you want to convert. The from and to arguments convert from one unit to another.
For example, (cvunit 10 "hour" "day") converts from hours to days). If the two units of measurement are incompatible, a nil is returned.
The units of measurements are found in the icad.unt file. For more information on customizing this file, see Chapter 17, "Customizing progeCAD," in the progeCAD User's Guide.
(cvunit 1 "day" "second")
(cvunit 2 "meter" "yard")
(cvunit '(2 3) "mile" "feet")
NOTE Points (or lists of numbers) can be converted, too, as shown by the above examples.
Tell me about...
(angtof string [mode])
(angtos angle [mode [precision]])
(distof string [mode])
(rtos number [mode [precision]])
(strcase string [flag])
Programming Overview of LISP (LISt Processing) Language