int s1 = 5507;
string str = Convert.ToString(s1, 2).PadLeft(32, '0'); // 00000000000000000001010110000011
int s1 = 5507;
string str = Convert.ToString(s1, 2).PadLeft(32, '0'); // 00000000000000000001010110000011
本文标题:C# Int 类型转二进制不足位补0(32位形式)
本文链接:https://www.haomeiwen.com/subject/iiizoctx.html
网友评论