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