Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)]
129
pub 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_equal
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected