mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
use math/float.zig everywhere
This commit is contained in:
26 files changed
+177
-173
No files matched your search
@@ -641,7 +641,7 @@ test "vector reduce operation" {
|
||||
// equal.
|
||||
} else {
|
||||
const F = @TypeOf(expected);
|
||||
const tolerance = @sqrt(math.epsilon(TX));
|
||||
const tolerance = @sqrt(math.floatEps(TX));
|
||||
try expect(std.math.approxEqRel(F, expected, r, tolerance));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user