module ParasitemiaCore.UnitsOfMeasure [] type px // Pixel. [] type μm [] type inch [] type ppi = px / inch // Pixel per inch. let μmInchRatio = 25.4e3<μm/inch> let μmToInch(x: float<μm>) : float = x / μmInchRatio let inchToμm(x: float) : float<μm> = x * μmInchRatio