From d50e13dcb6b026b34ee7f902d6eb94fa35a32176 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 5 Mar 2023 17:21:40 -0500 Subject: [PATCH] add warning to round --- include/blt/std/format.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/blt/std/format.h b/include/blt/std/format.h index fd53a44..8bb450e 100644 --- a/include/blt/std/format.h +++ b/include/blt/std/format.h @@ -19,6 +19,12 @@ namespace blt::string { return collection; } + /** + * This is a fast rounding function and is not guaranteed to be 100% correct + * @tparam decimal_places + * @param value + * @return + */ template static inline double round_up(double value) { constexpr double multiplier = _static_pow(decimal_places);