X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Frint.c;h=16b3e0bf5d10ca7ad398aabcdfecabb7c8213d01;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=f0a72822fc6bfa4fe374a5da33cb2a061b170a39;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old 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 */ };