1 #ifndef GEOMETRY_CSCGeometry_NINT_H_
2 #define GEOMETRY_CSCGeometry_NINT_H_
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); }
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.