aspis.common.divide
- aspis.common.divide(a, b, /)
Curried division function.
Divides the first number by the second. Can be partially applied.
- Parameters:
a (number) – The dividend (number to be divided).
b (number) – The divisor (number to divide by).
- Returns:
The quotient of a divided by b.
- Return type:
Example
>>> divide(6, 2) 3.0 >>> divide(10)(2) 5.0 >>> divide_by_two = divide(b=2) >>> divide_by_two(10) 5.0