ClosedBit error docs

CB_ERR_DIVIDE_BY_ZERO

Division by zero. A division or modulo operation used zero as the divisor.

Why it happens

A division or modulo operation used zero as the divisor.

How to fix it

Guard the divisor or use a fallback helper such as CB-Math.divide_or.

Copy-paste fix pattern
library CB-Math

fn main() {
    f64 value = CB-Math.divide_or(10, 0, 0)
    println(to_string(value))
}
If the IDE reports a line number, fix that line first, then scan the previous line for an unclosed string, bracket, or block.