CMPT 120 Lecture 10: cmpt120 in-class notes Fixed Point Notation

18 views1 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents