Re: [ROOT] Integer Division Error

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Nov 18 2002 - 14:35:24 MET


Hi Steffen,

It is the normal behaviour in ROOT and in C++

Rene Brun

On Mon, 18 Nov 2002, Steffen Grohmann wrote:

> 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