Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以用二进制记数法记录数字?
例如,当使用有符号表示法时,Logbinary(0x3) 应该给出我的 0111。
采用
Integer.toBinaryString(yourint);
或者
Long.toBinaryString(yourint);
将您的号码转换为可以记录的二进制字符串。