PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ next_float_up()

float next_float_up ( double  d)
inline

Definition at line 73 of file lwgeom_api.c.

References circ_node::d.

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

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