« Previous | Next » 

Revision c56dd17b

IDc56dd17b45aea6b244321ee3cf28df4f3ec5110d
Parent d58d44f3
Child 491d02ca

Added by Iustin Pop about 11 years ago

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 <>
Reviewed-by: Guido Trotter <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences