Skip to main content

Distance

A distance value can be given either as a plain number or as a string with a unit suffix.

When given as a plain number, the value is interpreted in the unit documented for the specific field (for example millimeters or nanometers).

When given as a string, it consists of a number followed by a unit suffix, for example "5 mm", "1.5 cm", or "0.5 in". The following units are supported:

UnitSuffixes
Meterm
Centimetercm
Millimetermm
Micrometerum, µm
Inchin, inch, "
Footft, foot, feet, '