Copy-paste fix pattern
library CB-Math
fn main() {
f64 value = CB-Math.sqrt_or(-5, 0)
println(to_string(value))
}
ClosedBit Docs
ClosedBit error docs
Non-finite floating result. A floating-point operation produced NaN, positive infinity, or negative infinity.
A floating-point operation produced NaN, positive infinity, or negative infinity.
Use fallback helpers for sqrt, division, log, and user-entered numbers.
library CB-Math
fn main() {
f64 value = CB-Math.sqrt_or(-5, 0)
println(to_string(value))
}