nip.utils.maths.greatest_divisor_up_to_max# nip.utils.maths.greatest_divisor_up_to_max(value: int, maximum: int) → int[source]# Find the greatest divisor of a value that is less than or equal to a maximum. Parameters: value (int) – The value to find the divisor for. maximum (int) – The maximum value for the divisor. Returns: greatest_divisor (int) – The greatest divisor of value that is less than or equal to maximum.