MCPcopy Index your code
hub / github.com/secdev/scapy / normalize

Method normalize

scapy/utils.py:176–180  ·  view source on GitHub ↗
(self, precision)

Source from the content-addressed store, hash-verified

174 return bool(float(self) == other)
175
176 def normalize(self, precision): # type: ignore
177 # type: (int) -> EDecimal
178 with decimal.localcontext() as ctx:
179 ctx.prec = precision
180 return EDecimal(super(EDecimal, self).normalize(ctx))
181
182
183@overload

Callers 1

i2hMethod · 0.95

Calls 1

EDecimalClass · 0.85

Tested by

no test coverage detected