Revision c56dd17b
ID | c56dd17b45aea6b244321ee3cf28df4f3ec5110d |
Parent | d58d44f3 |
Child | 491d02ca |
Switch LispConfig double comparison to relative error
This further improves the comparison for "non-trivial"
numbers. Without this patch, there are still cases where the absolute
error is too big, and we need to switch to relative error.
Concept has been taken from
<http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/>.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Files
- added
- modified
- copied
- renamed
- deleted