Shortcuts

Template Function ripple::math::div_then_ceil

Function Documentation

template<typename T, typename F = float>
auto ripple::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.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples