(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.
Examples
Code | Returns |
---|---|
(cvunit 1 "day" "second") | 86400.0 |
(cvunit 2 "meter" "yard") | 2.1872 |
(cvunit '(2 3) "mile" "feet") | (10560.0 15840.0) |
NOTE Points (or lists of numbers) can be converted, too, as shown by the above examples.
Tell me about...
(angtos angle [mode [precision]])