KCL Library Referencestdunits

unitsModule in std

Functions for converting numbers to different units.

All numbers in KCL include units, e.g., the number 42 is always '42 mm' or '42 degrees', etc. it is never just '42'. For more information, see numeric types.

Note that you only need to explicitly convert the units of a number if you need a specific unit for your own calculations. When calling a function, KCL will convert a number to the required units automatically (where possible, and give an error or warning if it's not possible).

Functions and constants