Last active
May 13, 2022 00:05
-
-
Save MayerDaniel/3cd22c357d44354a4a9d2f6e6d86c5bc to your computer and use it in GitHub Desktop.
most significant bytes
This file contains 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
def msb(i, n): | |
return int(hex(i)[2:2+(2*n)],16) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment