PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ next_float_down()

float next_float_down ( double  d)
inline

Definition at line 52 of file lwgeom_api.c.

53 {
54  float result;
55  if (d > (double)FLT_MAX)
56  return FLT_MAX;
57  if (d <= (double)-FLT_MAX)
58  return -FLT_MAX;
59  result = d;
60 
61  if ( ((double)result) <=d )
62  return result;
63 
64  return nextafterf(result, -1*FLT_MAX);
65 
66 }

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

Here is the caller graph for this function: