Skip to content

_utils

Full documentation pages are generated for docstring reference only and may contain symbols imported from other modules. Imported symbols are not distinguished from locally defined symbols and will appear in any module that they are imported into. For better information on where symbols should be imported from, review the sourcecode on the github.

FoSpy._utils

_ceil_to

_ceil_to(x, digits)
Source code in FoSpy/_utils.py
def _ceil_to(x, digits):
    return math.ceil(x * 10**digits) / 10**digits

_floor_to

_floor_to(x, digits)
Source code in FoSpy/_utils.py
def _floor_to(x, digits):
    return math.floor(x * 10**digits) / 10**digits