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