Re: TMath::Nint

Nick van Eijndhoven (Nick@phys.uu.nl)
Thu, 29 Apr 1999 17:22:49 +0200


"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.

Hi Jacek,
In the fortran case, the NINT() function returns the 'nearest int value'.
I guess that TMath::Nint() does the same.

-- 

Cheers, Nick.

*----------------------------------------------------------------------* Dr. Nick van Eijndhoven Department of Subatomic Physics email : nick@phys.uu.nl Utrecht University / NIKHEF tel. +31-30-2532331 (direct) P.O. Box 80.000 tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht fax. +31-30-2518689 The Netherlands WWW : http://www.phys.uu.nl/~nick Office : Ornstein lab. 172 ---------------------------------------------------------------------- tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 fax. +41-22-7679480 Switzerland CERN beep : 13+7294 Office : B 160 1-012 *----------------------------------------------------------------------*