(2025-10-11, 18:10)Hageta Wrote: ...(currently all units are first convert to mm and then to ldu).
This is the preferred programmatic practice. Easier to detect errors and to troubleshoot.
Your equations contained a few typos. The conversion factors seem to be mostly ok.
The LDU is defined as 2.5 LDU/mm.
1 mm = 2.5 LDU
1 cm = 10 mm = 25 LDU
1 dm = 100 mm = 250 LDU
1 m = 1000 mm = 2500 LDU
100 µm = 0.1 mm = 0.25 LDU
10 µm = 0.01 mm = 0.025 LDU
1 µm = 0.001 mm = 0.0025 LDU
One international inch is defined as 25.4 mm.
1 in = 25.4 mm = 63.5 LDU
Assuming one foot is twelve inches:
1 ft = 12 in = 304.8 mm = 762 LDU