]> pd.if.org Git - pdclib/blobdiff - functions/math/nearbyint.c
Re-import from Subversion.
[pdclib] / functions / math / nearbyint.c
index 675951d73936a3dc33ca375ddf27dd1f8d5af759..3937dbebb37d6890606e0f5129a08bd0f106290c 100644 (file)
@@ -1,19 +1,17 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
+/* ----------------------------------------------------------------------------
+ * $Id$
+ * ----------------------------------------------------------------------------
+ * Public Domain C Library - http://pdclib.sourceforge.net
+ * This code is Public Domain. Use, modify, and redistribute at will.
+ * --------------------------------------------------------------------------*/
 
-// ----------------------------------------------------------------------------
-// C++
-
-float nearbyint( float x ) { /* TODO */ };
-long double nearbyint( long double x ) { /* TODO */ };
+double nearbyint( double x ) { /* TODO */ };
 
-// ----------------------------------------------------------------------------
-// Standard C
+/* Therx code
+{
+    return round( x );
+}
+*/
 
-double nearbyint( double x ) { /* TODO */ };
 float nearbyintf( float x ) { /* TODO */ };
 long double nearbyintl( long double x ) { /* TODO */ };