|
TECA
The Toolkit for Extreme Climate Analysis
|
traits classes used to get default tolerances for comparing numbers of a given precision. More...
#include <teca_coordinate_util.h>
traits classes used to get default tolerances for comparing numbers of a given precision.
A relative tolerance is used for comparing large numbers and an absolute tolerance is used for comparing small numbers. these defaults are not universal and will not work well in all situations.
see also: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/