PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ next_float_down()

float next_float_down ( double  d)
inline

Definition at line 51 of file lwgeom_api.c.

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

52 {
53  float result;
54  if (d > (double)FLT_MAX)
55  return FLT_MAX;
56  if (d <= (double)-FLT_MAX)
57  return -FLT_MAX;
58  result = d;
59 
60  if ( ((double)result) <=d )
61  return result;
62 
63  return nextafterf(result, -1*FLT_MAX);
64 
65 }
Here is the caller graph for this function: