MCPcopy Create free account
hub / github.com/BladeTransformerLLC/gauzilla / is_float_zero

Function is_float_zero

src/utils.rs:129–131  ·  view source on GitHub ↗
(x: f32, threshold: f32)

Source from the content-addressed store, hash-verified

127/// Check if a float is zero
128#[inline(always)]
129pub fn is_float_zero(x: f32, threshold: f32) -> bool {
130 return x.abs() < threshold;
131}
132
133
134/// Check if two floats are equal

Callers 1

are_floats_equalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected