bpp-core3
3.0.0
|
Namespace for integer utils. More...
Functions | |
template<typename T > | |
T | divideDown (T n, T divisor) noexcept |
Returns floor(n/divisor). More... | |
template<typename T > | |
T | divideUp (T n, T divisor) noexcept |
Returns ceil (n/divisor). More... | |
template<typename T > | |
T | roundDown (T n, T divisor) noexcept |
Round n to previous divisor multiple. More... | |
template<typename T > | |
T | roundUp (T n, T divisor) noexcept |
Round n to next divisor multiple. More... | |
Namespace for integer utils.
|
noexcept |
Returns floor(n/divisor).
Definition at line 18 of file IntegerTools.h.
Referenced by divideUp(), roundDown(), and bpp::TextTools::split().
|
noexcept |
Returns ceil (n/divisor).
Definition at line 26 of file IntegerTools.h.
References divideDown().
Referenced by roundUp(), and bpp::TextTools::split().
|
noexcept |
Round n to previous divisor multiple.
Definition at line 34 of file IntegerTools.h.
References divideDown().
|
noexcept |
Round n to next divisor multiple.
Definition at line 42 of file IntegerTools.h.
References divideUp().