Copy-paste fix pattern
library CB-Math
fn main() {
f64 result = CB-Math.divide_or(total, count, 0)
println(result)
}
ClosedBit Docs
ClosedBit error docs
Division by zero. A division or modulo operation used zero as the divisor.
A division or modulo operation used zero as the divisor.
Guard the divisor or use a fallback helper before dividing.
library CB-Math
fn main() {
f64 result = CB-Math.divide_or(total, count, 0)
println(result)
}