Convert integer datatype to a binary string and back
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Convert integer datatype to a binary string and back.
int2bin(X) returns the binary representation of X as a string. X must be an integer datatype and non-negative. Unlike Matlab's dec2bin, int2bin supports int64 and uint64 values of X greater than 2^52.
bin2int(S) returns the integer value represented by the binary string S. The class of the output is the minimum unsigned integer class that supports the number of bits in the binary string. Unlike Matlab's bin2dec, bin2int supports binary strings with up to 64 bits.
Cite As
Andrew Horchler (2026). int2bin - bin2int (https://github.com/horchler/int2bin-bin2int), GitHub. Retrieved .
General Information
- Version 1.0.0.0 (4.35 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
