Better values for the constants defining the numerical precision.
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2009 16:56:27 +0000 (16:56 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2009 16:56:27 +0000 (16:56 +0000)
STEER/AliVParticle.h

index 9ea139f..9303406 100644 (file)
 #include <Rtypes.h>
 #include <TObject.h>
 
-const Double_t kAlmost1=0.999;
-const Double_t kAlmost0=1e-33;
+#include <float.h>
+
+const Double_t kAlmost1=1. - Double_t(FLT_EPSILON);
+const Double_t kAlmost0=Double_t(FLT_MIN);
 
 const Double_t kB2C=0.299792458e-3;
 const Double_t kAlmost0Field=1.e-13;