Suppose that you wish to create a user field function that defines the distance in the x direction in inches, rather than in the SI units of the computation. You could create a new field function called, say, "X inches" with the following definition:
$$Centroid[0]/0.0254