From memory, it’s unit-less and ignores G20/21.

Configure for metric or imperial and stick with it. Or have an imperial and metric configuration file