X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fround.c;fp=functions%2Fmath%2Fround.c;h=e3815e1ff091ec24c34f4381d8bab8cc32a05012;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=bf0a321692496338d832034348477ecd9d3c2c32;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/math/round.c b/functions/math/round.c index bf0a321..e3815e1 100644 --- a/functions/math/round.c +++ b/functions/math/round.c @@ -25,5 +25,12 @@ long lround( double x ) { /* TODO */ }; long lroundf( float x ) { /* TODO */ }; long lroundl( long double x ) { /* TODO */ }; double round( double x ) { /* TODO */ }; + +/* Therx code +{ + return (int) ( x + 0.5 ); +} +*/ + float roundf( float x ) { /* TODO */ }; long double roundl( long double x ) { /* TODO */ };