Template Function ripple::math::div_then_ceil¶
Defined in File math.hpp
Function Documentation¶
-
template<typename
T
, typenameF
= float>
autoripple::math
::
div_then_ceil
(T num, T denom) noexcept -> T¶ Computes the division $\frac{num}{denom}$ in the given precision, hen computes the ceil of the result before casting back to the original type.
- Return
The ceil of the division of num and denom.
- Parameters
num
: The numerator for the division.denon
: The denominator for the division.
- Template Parameters
T
: The types for the operations.F
: The precision to cast to.