PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ next_float_up()

float next_float_up ( double  d)

Definition at line 159 of file lwgeom_api.c.

References nextafterf_custom().

Referenced by box2df_from_gbox_p(), gbox_float_round(), gbox_same_2d_float(), gserialized_from_gbox(), and test_f2d().

160 {
161  float result = d;
162 
163  if ( ((double) result) >=d)
164  return result;
165 
166  return nextafterf_custom(result, result + 1000000);
167 }
static float nextafterf_custom(float x, float y)
Definition: lwgeom_api.c:76
Here is the call graph for this function:
Here is the caller graph for this function: