Skip to content

v4.2.0 - Exact unit conversion factors, new quantities

Choose a tag to compare

@pjazdzyk pjazdzyk released this 19 Sep 14:01

CHANGE LOG (19.09.2026):

  • backward compatibility: COMPATIBLE (no API removed), but 49 conversion factors change value, see CHANGELOG.md
  • every unit conversion factor now comes from a named, sourced, exact definition (UnitDefinitions), checked unit by unit against NIST SP 811 Appendix B.8
  • new LinearScale: a linear unit is declared by one scale, so a forward and an inverse converter can no longer disagree
  • corrected ten factors that were wrong in 4.1.0:
    • HumidityRatioUnits.POUND_PER_POUND: 1 (lb/lb = kg/kg), was 0.45359237, humidity ratios in lb/lb read 2.2 times too large
    • CurvatureUnits.DEGREES_PER_HUNDRED_FEET: was 10 000 times too large
    • FlowCoefficientUnits.CV: 0.8649776554 Kv, was 0.85667 (0.96 % low)
    • LinearResistanceUnits.INCH_OF_WATER_PER_100_FEET: conventional inch of water per 30.48 m
    • PressureUnits.METRE_OF_WATER_10 / _60 / _95: water densities from the NIST Chemistry WebBook (IAPWS-95)
    • LinearHeatFluxUnits.BTU_PER_HOUR_FOOT and BTU_PER_MINUTE_FOOT: Btu_IT / h / ft
    • SpecificVolumeUnits.OUNCE_PER_POUND: US fluid ounce = 231 in3 / 128
  • deprecated VelocityUnits.MACH (a Mach number is a ratio, not a unit of velocity); it still converts at 340.29 m/s
  • new quantities: Time, Emissivity, Absorptivity, HeatCapacity, ThermalConductance
  • new quantities: VapourQuality, RelativeDensity, NormalVolumetricFlow
  • new quantity: SurfaceTension
  • new validation annotations: @PhysicalPositive, @PhysicalNegative