math
- ceil(x: int, decimals: int) int
Return the ceiling of x given the amount of decimals. This is the smallest integer >= x.
>>> ceil(12345, 3) 13000
- Parameters:
- Returns:
the ceiling of x
- Return type:
- Raises:
Exception – raised when decimals is negative.
Deprecated since version 1.3.0: This module is deprecated. Use
boa3.sc.math
instead
- floor(x: int, decimals: int) int
Return the floor of x given the amount of decimals. This is the largest integer <= x.
>>> floor(12345, 3) 12000
- Parameters:
- Returns:
the floor of x
- Return type:
- Raises:
Exception – raised when decimals is negative.
Deprecated since version 1.3.0: This module is deprecated. Use
boa3.sc.math
instead
- sqrt(x: int) int
Gets the square root of a number.
>>> sqrt(1) 1
>>> sqrt(10) 3
>>> sqrt(25) 5
- Parameters:
x (int) – a non-negative number
- Returns:
the square root of a number
- Return type:
- Raises:
Exception – raised when number is negative.
Deprecated since version 1.3.0: This module is deprecated. Use
boa3.sc.math
instead