]> pd.if.org Git - pdclib/blobdiff - functions/math/round.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / math / round.c
index bf0a321692496338d832034348477ecd9d3c2c32..e3815e1ff091ec24c34f4381d8bab8cc32a05012 100644 (file)
@@ -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 */ };