Utilities for numerical rounding. More...
#include <cmath>Go to the source code of this file.
Namespaces | |
| icarus::ns::util | |
Functions | |
| template<typename T , typename U > | |
| constexpr T | icarus::ns::util::rounddown (T const value, U const quantum, T const offset=T{}) |
Returns the value, rounded down. More... | |
| template<typename T , typename U > | |
| constexpr T | icarus::ns::util::roundup (T const value, U const quantum, T const offset=T{}) |
Returns the value, rounded up. More... | |
Utilities for numerical rounding.
This is a header-only library.
Definition in file rounding.h.
1.8.5