CMPT 120 Lecture 10: cmpt120 in-class notes Fixed Point Notation
meghan78 and 39786 others unlocked
29
CMPT 120 Full Course Notes
Verified Note
29 documents
Document Summary
Signed binary: uses left most bit to indicate the sign. 1111 = 15 in unsigned binary but -1 in fixed point notation (signed binary) Given what we know so far about fpn, what does 1 0011100 represent if we know that we use 8 bits for the number -> its negative. Given what we know so far about fpn, what does 0 1111111 represent if we know that we use 8 bits for the number -> its positive & we can convert into base 10 w weights. Given what we know so far about fpn, what does f3 represent if we know that we use 8 bits for the number -> f=1111 3=0011 therefore 1 1110011 -> we know its negative. Algorithms to represent in fpn w a specific # of bits: Positive: fill w/ 0"s to the left. Start with the number as positive, with the given number of bits, leftmost will be 0.