math#

Math utility functions module.

Module Contents#

Functions#

closest_number_ceil(→ int)

Returns the closest next value that is a multiple of M.

closest_number_ceil(number: int | float, multiple: int | float) int[source]#

Returns the closest next value that is a multiple of M.

Parameters:
  • number – The number.

  • multiple – The modulo or granularity level.

Returns:

The closest next number.