In c# I am converting a byte
to binary
, the actual answer is 00111111
but the result being given is 111111
. Now I really need to display even the 2 0s in front. Can anyone tell me how to do this?
I am using:
Convert.ToString(byteArray[20],2)
and the byte value is 63
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…