Opened 7 years ago
Last modified 7 years ago
#2836 new defect
IsAlmost() uses a fixed epsilon for comparison
Reported by: | gkronber | Owned by: | gkronber |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 4.0 |
Component: | Common | Version: | |
Keywords: | Cc: |
Description
The fixed epsilon value in IsAlmost (1E-12) is problematic e.g. when working with very small numbers. Probably, it would be better to use a relative comparison instead.
https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
Change History (1)
comment:1 Changed 7 years ago by gkronber
- Summary changed from IsAlmost() uses a fixed epislon for comparison to IsAlmost() uses a fixed epsilon for comparison
Note: See
TracTickets for help on using
tickets.