UtilMath Namespace Reference


bool sameValue (double x1, double x2, bool strict=false, double prec=10.)

Function Documentation

bool UtilMath::sameValue ( double  x1,
double  x2,
bool  strict = false,
double  prec = 10. 

Test if two doubles are w/in epsilon of each other. If strict is false, use 10x float epsilon, o.w. 10x double epsilon.

Referenced by BDCheckDB::CheckSpill(), and compareP4().

Generated on 18 Dec 2018 for loon by  doxygen 1.6.1