X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fnearbyint.c;h=f9f7efac50b3fecbb9534a5594ad452b0e7b1fcd;hb=b589d7c67f9130207ab72d8b7c687b94d5bcc352;hp=675951d73936a3dc33ca375ddf27dd1f8d5af759;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/math/nearbyint.c b/functions/math/nearbyint.c index 675951d..f9f7efa 100644 --- a/functions/math/nearbyint.c +++ b/functions/math/nearbyint.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double nearbyint( double x ) { /* TODO */ }; -float nearbyint( float x ) { /* TODO */ }; -long double nearbyint( long double x ) { /* TODO */ }; +/* Therx code +{ + return round( x ); +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double nearbyint( double x ) { /* TODO */ }; float nearbyintf( float x ) { /* TODO */ }; long double nearbyintl( long double x ) { /* TODO */ };