X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fnearbyint.c;h=0b4f29c85f6a797367395922e5df9c52c13c581f;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=675951d73936a3dc33ca375ddf27dd1f8d5af759;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/math/nearbyint.c b/functions/math/nearbyint.c index 675951d..0b4f29c 100644 --- a/functions/math/nearbyint.c +++ b/functions/math/nearbyint.c @@ -15,5 +15,12 @@ long double nearbyint( long double x ) { /* TODO */ }; // Standard C double nearbyint( double x ) { /* TODO */ }; + +/* Therx code +{ + return round( x ); +} +*/ + float nearbyintf( float x ) { /* TODO */ }; long double nearbyintl( long double x ) { /* TODO */ };