unittomm

Unit conversion.

Converts value from g-code units to millimeter units (G20, G21).

Syntax

unittomm[x]

Parameters

x Value to be converted.
Return Value Value x in millimeter units.

Examples

G20
#<result> = unittomm[1]

result: 25.4


G21
#<result> = unittomm[1]

result: 1

See also

mmtounit