Last active
September 17, 2024 10:40
-
-
Save maxsimych/8bf96b96fd242576fc8001bf65618c40 to your computer and use it in GitHub Desktop.
Convert number to 32-bit binary string.
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
| const toBinStr = num => (num >>> 0).toString(2).padStart(32,'0').match(/.{1,8}/g).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment