ceil
- ketos.utils.ceil(a, decimals=0)[source]
This function adds the ability to ceil to a decimal precision instead of to the nearest integer. Similar to np.round() precision argument.
- Args:
- a: array_like
Input data.
- decimals: int
Number of decimal places to round to (default: 0).
- Returns:
- : array_like
The ceil of a
- Example:
>>> from ketos.utils import ceil >>> ceil(13.84) 14.0 >>> ceil(13.36) 14.0 >>> ceil(13.84, decimals=1) 13.9 >>> ceil(13.844444, decimals=3) 13.845