1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 float floor( float x ) { /* TODO */ };
12 long double floor( long double x ) { /* TODO */ };
14 // ----------------------------------------------------------------------------
17 double floor( double x ) { /* TODO */ };
21 return ( x > 0 ) ? (int) x : (int) ( x - 0.9999999999999999 );
25 /* PDPC code - unreviewed
45 float floorf( float x ) { /* TODO */ };
46 long double floorl( long double x ) { /* TODO */ };