use math/float.zig everywhere

This commit is contained in:
viri committed 2022-04-07 05:04:38 -06:00
1 parent 5d6a5a1236
commit e46c612503
26 files changed
+177 -173

No files matched your search

+1 -1
View File
@@ -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));
}
},