Module round

Source

Functions§

how_many
Returns how many items of a given size are needed to contain a value.
round_div
Computes the rounded division of numerator / denominator.
round_down
Round offset down to the previous multiple of block_size.
round_up
Round offset up to next multiple of block_size. This function will fail if rounding up leads to an integer overflow.