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 double floor( double x ) { /* TODO */ };
12 return ( x > 0 ) ? (int) x : (int) ( x - 0.9999999999999999 );
16 /* PDPC code - unreviewed
36 float floorf( float x ) { /* TODO */ };
37 long double floorl( long double x ) { /* TODO */ };