PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ snap_to_int()

static double snap_to_int ( double  val)
inlinestatic

Definition at line 2280 of file lwgeom.c.

2281 {
2282  const double tolerance = 1e-6;
2283  double rintval = rint(val);
2284  if (fabs(val - rintval) < tolerance)
2285  {
2286  return rintval;
2287  }
2288  return val;
2289 }

Referenced by condition_gridspec_scale().

Here is the caller graph for this function: