PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ next_float_up()

float next_float_up ( double  d)
inline

Definition at line 74 of file lwgeom_api.c.

75 {
76  float result;
77  if (d >= (double)FLT_MAX)
78  return FLT_MAX;
79  if (d < (double)-FLT_MAX)
80  return -FLT_MAX;
81  result = d;
82 
83  if ( ((double)result) >=d )
84  return result;
85 
86  return nextafterf(result, FLT_MAX);
87 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:267

References result.

Referenced by box2df_from_gbox_p(), gbox_float_round(), gbox_same_2d_float(), gserialized1_from_gbox(), gserialized2_from_gbox(), and test_f2d().

Here is the caller graph for this function: