]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 9ea139f798c7e973f21653ecafac8cd37bd45775..930340689d27f1803396bb5942fedd9bff3ea174 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;