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
..
2020-10-28 10:36:19 +01:00
2020-11-01 15:40:42 -05:00
2020-10-28 10:03:23 +01:00
2020-11-04 18:30:48 -06:00
2020-11-02 13:20:58 -05:00
2020-09-04 05:15:03 +03:00
2020-09-11 20:02:41 -04:00
2020-10-19 15:15:43 +02:00
2020-10-07 04:34:09 -04:00
2020-11-03 17:29:20 -05:00
2020-10-28 10:03:23 +01:00
2020-09-04 22:49:14 +03:00
2020-09-22 05:12:21 -07:00