[ROOT] Integer Division Error

From: Steffen Grohmann (Steffen.Grohmann@cern.ch)
Date: Mon Nov 18 2002 - 14:23:34 MET


Hello,
 
I found a problem dividing integers in root. For instance, when I
declare:
  Double_t x = 2/3;
the result of x is "0". The operation only works when I write:
  Double_t x = 2./3.;
 
Could you please tell me if this is "normal" behavior in root?
 
Regards, Steffen
 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:18 MET