The numbers
module is used to manipulate numbers, typically by rounding and simplifying them, in utilities-industry-standard ways.
from xocto.numbers import quantise
>>> quantise(256, 5)
255
See xocto.numbers for more details, including examples and in depth technical details.
.. module:: xocto.types
.. automodule:: xocto.numbers
:members:
:undoc-members:
:show-inheritance: