cvunit


(cvunit  value  fromUnit  toUnit)

This function converts value from fromUnit to toUnit unit of measurement.

Arguments

value  any integer or double number, or a 2D / 3D point list

fromUnit  string, specifies the source unit ("meter" "ft" "inch" etc.)

toUnit  string, specifies the target unit ("meter" "ft" "inch" etc.)

Return

double value, or NIL if the input value can not be converted

Example

(cvunit 2.0 "inch" "cm")  5.08

Remarks




©  Bricsys NV. All rights reserved.