PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ next_float_down()

float next_float_down ( double  d)

Definition at line 143 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().

144 {
145  float result = d;
146 
147  if ( ((double) result) <=d)
148  return result;
149 
150  return nextafterf_custom(result, result - 1000000);
151 
152 }
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: