PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ next_float_down()

float next_float_down ( double  d)
externinline

Definition at line 54 of file lwgeom_api.c.

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

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: