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