PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ next_float_up()

float next_float_up ( double  d)
inline

Definition at line 72 of file lwgeom_api.c.

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

73 {
74  float result;
75  if (d >= (double)FLT_MAX)
76  return FLT_MAX;
77  if (d < (double)-FLT_MAX)
78  return -FLT_MAX;
79  result = d;
80 
81  if ( ((double)result) >=d )
82  return result;
83 
84  return nextafterf(result, FLT_MAX);
85 }
Here is the caller graph for this function: