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

Function Int2AP

tools/python-3.11.9-amd64/Lib/imaplib.py:1480–1489  ·  view source on GitHub ↗

Convert integer to A-P string representation.

(num)

Source from the content-addressed store, hash-verified

1478
1479
1480def Int2AP(num):
1481
1482 """Convert integer to A-P string representation."""
1483
1484 val = b''; AP = b'ABCDEFGHIJKLMNOP'
1485 num = int(abs(num))
1486 while num:
1487 num, mod = divmod(num, 16)
1488 val = AP[mod:mod+1] + val
1489 return val
1490
1491
1492

Callers 1

_connectMethod · 0.85

Calls 1

absFunction · 0.70

Tested by

no test coverage detected