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.
有这门大学的课程再也不需要了,我如何将一个数字从(例如 1100)转换为二进制补码并反转?任何可以做到这一点的在线计算器?我了解什么是二进制补码以及符号和大小是什么,只是不知道如何转换它们以及如何添加二进制补码数
使用二进制补码可以很容易地否定一个数字:反转位并加一。
获取您的符号/数量并分隔字段。如果标志是积极的,你就完成了。如果符号为负,则对上述大小取反。