rust-num / num-integer

Integer trait and functions for Rust
Apache License 2.0
180 stars 48 forks source link

Define ceiled division, rounding to nearest multiple #16

Closed strake closed 5 years ago

strake commented 5 years ago

I often find round_up_to in particular useful; round_down_to is also defined for completeness.

div_ceil is also defined as round_up_to is defined in terms of it.

strake commented 5 years ago

ping

strake commented 5 years ago

Done, PTAL

cuviper commented 5 years ago

Looks good, I just formatted it.

bors r+

bors[bot] commented 5 years ago

Build succeeded