Re: TMath::Nint

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Apr 29 1999 - 17:23:35 MEST


Hi Jacek,

   Nint() returns the nearest integer. In case of x.5 it round up or down
to an even value. 5.5 -> 6   4.5 -> 4. All other cases to the nearest integer.

Cheers, Fons.



Jacek M. Holeczek wrote:
> 
> Hi,
> I try, and try, and try, ... to understand what the TMath::Nint function
> does, but I can't. I have the feeling that someone tries to swindle me.
> Any help appreciated,
> Jacek.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET