aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/utility/FloatUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic/utility/FloatUtils.hpp')
-rw-r--r--src/openvic/utility/FloatUtils.hpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openvic/utility/FloatUtils.hpp b/src/openvic/utility/FloatUtils.hpp
deleted file mode 100644
index 4fc83fd..0000000
--- a/src/openvic/utility/FloatUtils.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <cstdint>
-
-namespace OpenVic::FloatUtils {
- constexpr int round_to_int(double num) {
- return (num > 0.0) ? (num + 0.5) : (num - 0.5);
- }
-
- constexpr int64_t round_to_int64(double num) {
- return (num > 0.0) ? (num + 0.5) : (num - 0.5);
- }
-}