How to represent a negative number with a fraction in 2's complement?
问题 So I want to represent the number -12.5 . So 12.5 equals to: 001100.100 If I don't calculate the fraction then it's simple, -12 is: 110100 But what is -12.5? is it 110100.100 ? How can I calculate this negative fraction? 回答1: With decimal number systems, each number position (or column) represents (reading a number from right to left): units (which is 10^0), tens (i.e. 10^1),hundreds (i.e. 10^2), etc. With unsigned binary numbers, the base is 2, thus each position becomes (again, reading from