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

◆ next_float_down()

float next_float_down ( double  d)
externinline

Definition at line 53 of file lwgeom_api.c.

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