feat: Adds furnace heating interpolations.
All checks were successful
CI / Ubuntu (push) Successful in 11m23s

This commit is contained in:
2025-03-13 11:49:32 -04:00
parent bd33827e53
commit 5f6d2a7b6c
6 changed files with 170 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
import CoreFoundation
func normalizePercentage(
_ lhs: Int,
_ rhs: Int
) -> Int {
let value = Double(lhs) / Double(rhs)
return Int((value * 1000).rounded() / 10.0)
}