MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _mod

Method _mod

tools/python-3.11.9-amd64/Lib/fractions.py:534–537  ·  view source on GitHub ↗

a % b

(a, b)

Source from the content-addressed store, hash-verified

532 __divmod__, __rdivmod__ = _operator_fallbacks(_divmod, divmod)
533
534 def _mod(a, b):
535 """a % b"""
536 da, db = a.denominator, b.denominator
537 return Fraction((a.numerator * db) % (b.numerator * da), da * db)
538
539 __mod__, __rmod__ = _operator_fallbacks(_mod, operator.mod)
540

Callers

nothing calls this directly

Calls 1

FractionClass · 0.85

Tested by

no test coverage detected