Skip to content

angee.money.rounding ​

Money-owned rounding vocabulary.

RoundingMode ​

python
class RoundingMode(models.TextChoices)

Named rounding policies supported by money calculations.

ROUNDING_CONSTANTS ​

RoundingMode value -> :mod:decimal rounding constant.

DEFAULT_ROUNDING_MODE ​

Default money rounding policy when a caller does not override it.

rounding_constant ​

python
def rounding_constant(mode: RoundingMode | str | None = None) -> str

Return the :mod:decimal rounding constant for one money rounding mode.

Released under the AGPL-3.0 License.