Created
April 22, 2023 20:58
-
-
Save Aviksaikat/dfe118692f13148602a611842d89a5d6 to your computer and use it in GitHub Desktop.
Convert uin160 to uint16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
def convert(val): | |
return (val % (2**16)) | |
if __name__ == "__main__": | |
convert(111307528078210727017296793935765405223298045576) | |
# 38536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment