PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ snap_to_int()

static double snap_to_int ( double  val)
inlinestatic

Definition at line 2252 of file lwgeom.c.

2253 {
2254  const double tolerance = 1e-6;
2255  double rintval = rint(val);
2256  if (fabs(val - rintval) < tolerance)
2257  {
2258  return rintval;
2259  }
2260  return val;
2261 }

Referenced by condition_gridspec_scale().

Here is the caller graph for this function: