I need to convert a whole in binary, my problem is that if I have 011001, I find myself at the end of the conversion 111. How can I leave the zeros? and maintain so the conversion as it should be. Thank you.
int value = 8388607;
String bin = Convert.ToString(value, 2);
SOLUTION:
String bin = Convert.ToString(value, 2).PadLeft(X,'0');
where x is the number of bits that make up the string