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