summaryrefslogtreecommitdiff
path: root/src/mathc99.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mathc99.cc')
-rw-r--r--src/mathc99.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mathc99.cc b/src/mathc99.cc
new file mode 100644
index 0000000..db71059
--- /dev/null
+++ b/src/mathc99.cc
@@ -0,0 +1,5 @@
+#include "mathc99.h"
+
+double found(double a) {
+ return a > 0 ? floor(a+0.5) : ceil(a-0.5);
+}
contact: Jan Huwald // Impressum