This commit is contained in:
Dominic Ferrando
2025-10-15 18:01:53 -04:00
parent 44de0d9f64
commit eb8a2ab933
4 changed files with 15 additions and 12 deletions
+4 -1
View File
@@ -35,7 +35,10 @@
case "ms":
return msToTime(rawValue, activity === Activity.ConeDrill);
case "cm": {
return String(Math.round(cmToIn(rawValue) * 10) / 10);
const totalInches = cmToIn(rawValue);
const feet = Math.floor(totalInches / 12);
const inches = Math.round(totalInches % 12);
return `${feet}'${inches}"`;
}
case "kg":
return String(Math.round(kgToLb(rawValue)));