zig/lib/std/special
LemonBoy ff14451b4a std: Implement more useful approxEq semantics
Comparisons with absolute epsilons are usually useful when comparing
numbers to zero, for non-zero numbers it's advised to switch to relative
epsilons instead to obtain meaningful results (check [1] for more
details).

The new API introduces approxEqAbs and approxEqRel, where the former
aliases and deprecated the old `approxEq`, allowing the user to pick the
right tool for the job.

The documentation is meant to guide the user in the choice of the
correct alternative.

[1] https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
2020-11-05 16:08:49 +01:00
..
compiler_rt Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
docs Merge pull request #6678 from s-ol/doc-type-aware 2020-10-29 15:19:02 +02:00
init-exe Add support for zig build run -- arg1 arg1 in file created by init-exe 2020-10-16 21:29:24 -04:00
init-lib remove licensing comments from init-exe/init-lib 2020-08-23 22:45:18 -04:00
build_runner.zig std/build: support --color 2020-10-13 20:06:03 +02:00
c.zig std: Implement more useful approxEq semantics 2020-11-05 16:08:49 +01:00
compiler_rt.zig std: Add libssp implementation for GNU/Windows targets 2020-10-16 21:22:14 -04:00
ssp.zig std: Add libssp implementation for GNU/Windows targets 2020-10-16 21:22:14 -04:00
test_runner.zig test runner: use the correct number in leak report 2020-10-25 11:28:36 +02:00