ClosedBit error docs

CB_ERR_NONFINITE_FLOAT

Non-finite floating result. A floating-point operation produced NaN, positive infinity, or negative infinity.

Why it happens

A floating-point operation produced NaN, positive infinity, or negative infinity.

How to fix it

Use fallback helpers for sqrt, division, log, and user-entered numbers.

Copy-paste fix pattern
library CB-Math

fn main() {
    f64 value = CB-Math.sqrt_or(-5, 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.