'how to convert a binary number into a string [duplicate]
Would anyone know how to convert a binary number into a string that represents its digits ?
let s: u32 = 0b00100000001011001100001101110001110000110010110011100000;
I need study different parts of this binary number by cuting it into pieces (ex first 5 digits, then digit 6 to 15, etc...).
In order to do so, I'm thinking using string slices but first I need to convert the binary number into a string ( "00100000010110011...").
Thank you !
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
