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: Union[int, float], multiple: Union[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.

Return type

int