add warning to round

v1
Brett 2023-03-05 17:21:40 -05:00
parent c025299ee4
commit d50e13dcb6
1 changed files with 6 additions and 0 deletions

View File

@ -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<int decimal_places>
static inline double round_up(double value) {
constexpr double multiplier = _static_pow(decimal_places);