Skip to content

Commit

Permalink
Add comment about integers being positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Apr 15, 2024
1 parent abfa9c8 commit 61c29a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fplus/numeric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ std::function<X(X)> divide_by(const X& x)
}

// API search type: div_pos_int_ceil : (a, a) -> a
// Integer division, but rounding up instead of down.
// Positive integer division, but rounding up instead of down.
// div_pos_int_ceil(5, 3) == 2
template<typename X>
static auto div_pos_int_ceil(X numerator, X denominator) {
Expand Down

0 comments on commit 61c29a3

Please sign in to comment.