float equality (hack! - does not handle NaN/Infinity, see https://floating-point-gui.de/errors/comparison/)
(a: f32, b: f32)
| 35 | |
| 36 | /// float equality (hack! - does not handle NaN/Infinity, see https://floating-point-gui.de/errors/comparison/) |
| 37 | pub fn float_eq(a: f32, b: f32) -> bool { |
| 38 | (a - b).abs() <= f32::EPSILON |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected