X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fnearbyint.c;h=f9f7efac50b3fecbb9534a5594ad452b0e7b1fcd;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=675951d73936a3dc33ca375ddf27dd1f8d5af759;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib 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 */ };