Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ shortToString
Function
shortToString
recipes/Python/577674_Bitmap_Maker/recipe-577674.py:57–60 ·
view source on GitHub ↗
(i)
Source
from the content-addressed store, hash-verified
55
from
math
import
ceil, hypot
56
57
def
shortToString(i):
58
hi = (i & 0xff00) >> 8
59
lo = i & 0x00ff
60
return
chr(lo) + chr(hi)
61
62
def
longToString(i):
63
hi = (int(i) & 0x7fff0000) >> 16
Callers
3
longToString
Function · 0.85
_saveBitMapNoCompression
Method · 0.85
_saveBitMapWithCompression
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected