]> pd.if.org Git - pdclib/blobdiff - functions/math/nearbyint.c
Introducing personalities. Removing C++ function decs / defs.
[pdclib] / functions / math / nearbyint.c
index 675951d73936a3dc33ca375ddf27dd1f8d5af759..f9f7efac50b3fecbb9534a5594ad452b0e7b1fcd 100644 (file)
@@ -5,15 +5,13 @@
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
 
-// ----------------------------------------------------------------------------
-// C++
+double nearbyint( double x ) { /* TODO */ };
 
-float nearbyint( float x ) { /* TODO */ };
-long double nearbyint( long double x ) { /* TODO */ };
+/* Therx code
+{
+    return round( x );
+}
+*/
 
-// ----------------------------------------------------------------------------
-// Standard C
-
-double nearbyint( double x ) { /* TODO */ };
 float nearbyintf( float x ) { /* TODO */ };
 long double nearbyintl( long double x ) { /* TODO */ };