William J Deninger wrote: > > Hello, > > There is a strange bug in 1.03/09 TAxis on my WinNT w/sp3 which can be > illustrated in the following. > > TH1F *h = new TH1F("h","test",300,0,300); > Int_t i; > TAxis *a = h->GetXaxis(); > Float_t x = 55.0; > Float_t fXmin = a->GetXmin(); > Float_t fXmax = a->GetXmax(); > Int_t fNbins = a->GetNbins(); > > Int_t bin = a->FindBin(x); // result is incorrect > Int_t bin1 = 1 + (Int_t) fNbins*(x - fXmin)/(fXmax-fXmin); // result > is correct > > for (i=0; i<600; i++) h->Fill( i/2.0 ); > h->Draw(); > > Has this been corrected on version 2.0? > I am sorry. I cannot reproduce what you call "a bug". I am getting the expected value bin=bin1=56 When you want to see the list of changes in a new version, read the version release notes available from the Root "Availability and Status" page. For example http://root.cern.ch/root/html/examples/V2.00.txt.html Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET