Copy-paste fix pattern
library CB-Math
fn main() {
f64 value = CB-Math.divide_or(10, 0, 0)
println(to_string(value))
}
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 such as CB-Math.divide_or.
library CB-Math
fn main() {
f64 value = CB-Math.divide_or(10, 0, 0)
println(to_string(value))
}