mmtounit

Unit conversion.

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

Syntax

mmtounit[x]

Parameters

x Value to be converted.
Return Value Value x in G-code units.

Examples

G20
#<result> = mmtounit[25.4]

result: 1


G21
#<result> = mmtounit[25.4]

result: 25.4

See also

unittomm