MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / normalize

Method normalize

Lib/decimal.py:4874–4896  ·  view source on GitHub ↗

normalize reduces an operand to its simplest form. Essentially a plus operation with all trailing zeros removed from the result. >>> ExtendedContext.normalize(Decimal('2.1')) Decimal('2.1') >>> ExtendedContext.normalize(Decimal('-2.0')) Decimal('-2')

(self, a)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
normalizeMethod · 0.45

Tested by

no test coverage detected