[READ-ONLY] Mirror of https://github.com/probablykasper/cpc. Text calculator with support for units and conversion cpc.kasper.space
calculator cli conversion converter library math package units units-converter wasm website
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix weights of torr, btu/h, btu/s

Kasper (Jun 20, 2026, 1:42 AM +0200) dffab506 0fa01108

+5 -3
+1
CHANGELOG.md
··· 2 2 3 3 ## Next 4 4 - Update `fastnum` dependency 5 + - Fix conversion of `torr`, `btu/s` and `btu/h` 5 6 - Fix unit spellings 6 7 - Fix spelling of `decares` 7 8
+4 -3
src/units.rs
··· 264 264 Terawatt: (Power, d!(1000000000000), "terawatt", "terawatts"), 265 265 Petawatt: (Power, d!(1000000000000000), "petawatt", "petawatts"), 266 266 // probably inexact: 267 - BritishThermalUnitsPerMinute: (Power, d!(0.0568690272188), "british thermal unit per minute", "british thermal units per minute"), 267 + BritishThermalUnitsPerMinute: (Power, d!(3.412141633128), "british thermal unit per minute", "british thermal units per minute"), 268 268 // probably inexact: 269 - BritishThermalUnitsPerHour: (Power, d!(3.412141633128), "british thermal unit per hour", "british thermal units per hour"), 269 + BritishThermalUnitsPerHour: (Power, d!(0.0568690272188), "british thermal unit per hour", "british thermal units per hour"), 270 270 // exact according to wikipedia: 271 271 Horsepower: (Power, d!(745.69987158227022), "horsepower", "horsepower"), 272 272 MetricHorsepower: (Power, d!(735.49875), "metric horsepower", "metric horsepower"), ··· 292 292 InchOfMercury: (Pressure, d!(3386.389), "inch of mercury", "inches of mercury"), 293 293 // inexact: 294 294 PoundsPerSquareInch: (Pressure, d!(6894.757293168361), "pound per square inch", "pounds per square inch"), 295 - Torr: (Pressure, d!(162.12), "torr", "torr"), 295 + // inexact: 296 + Torr: (Pressure, d!(133.3223684210526), "torr", "torr"), 296 297 297 298 Hertz: (Frequency, d!(1), "hertz", "hertz"), 298 299 Kilohertz: (Frequency, d!(1000), "kilohertz", "kilohertz"),