13.3 Conversion functions

If you want to know the value of a PyX length in certain units, you may use the predefined conversion functions which are given in the following table
function result
tom(l) l in units of m
tocm(l) l in units of cm
tomm(l) l in units of mm
toinch(l) l in units of inch
topt(l) l in units of points
If l is not yet a length instance but a number, it first is interpreted as a user length in the default units.