X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fmath%2Frint.c;h=16b3e0bf5d10ca7ad398aabcdfecabb7c8213d01;hp=f0a72822fc6bfa4fe374a5da33cb2a061b170a39;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/math/rint.c b/functions/math/rint.c index f0a7282..16b3e0b 100644 --- a/functions/math/rint.c +++ b/functions/math/rint.c @@ -25,5 +25,12 @@ long lrint( double x ) { /* TODO */ }; long lrintf( float x ) { /* TODO */ }; long lrintl( long double x ) { /* TODO */ }; double rint( double x ) { /* TODO */ }; + +/* Therx code +{ + return round( x ); +} +*/ + float rintf( float x ) { /* TODO */ }; long double rintl( long double x ) { /* TODO */ };