PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ next_float_down()

float next_float_down ( double  d)

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

157 {
158  float result = d;
159 
160  if ( ((double) result) <=d)
161  return result;
162 
163  return nextafterf_custom(result, result - 1000000);
164 
165 }
static float nextafterf_custom(float x, float y)
Definition: lwgeom_api.c:89
Here is the call graph for this function:
Here is the caller graph for this function: