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