CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
nint.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_CSCGeometry_NINT_H_
2 #define GEOMETRY_CSCGeometry_NINT_H_
3 
4 // From CommonDet/Utilities
5 
7 
8 inline int nint( float a) { return a>=0 ? int( a+0.5) : int( a-0.5);}
9 inline int nint( double a) { return a>=0 ? int( a+0.5) : int( a-0.5);}
10 
11 #endif
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
Definition: nint.h:8
double a
Definition: hdecay.h:121