Module: UtilMath

Math-related utilities.

Note: this module will be merged into Math in the next release.

proc divceilpos(m: integral, n: integral)

A variant of divceil that performs no runtime checks. The user must ensure that both arguments are strictly positive (not 0) and are of a signed integer type (not uint).

proc divfloorpos(m: integral, n: integral)

A variant of divfloor that performs no runtime checks. The user must ensure that both arguments are strictly positive (not 0) and are of a signed integer type (not uint).