Binary Flashcards
what do the 1s and 0s represent in a computer
whether the current is flowing or not
what is the maximum value that can be stored using
2n - 1
how to carry out twos complements
write the original number in binary then flip the ones and zeros but add 1 to the end
what happens in twos complement
the highest number is negative
what is the minimum value that can be stored using unsigned binary
0
how to do fixed point representation
- make the highest number (16) negative
- after 1, do 1/2, then 1/4
how to do floating point representation
- ## the highest number changes, but is still negative
advantages of using floating point representation over fixed point
- Floating-point numbers can represent both extremely large and very small numbers
- more efficient for representing fractions and decimals, providing more flexibility for non-integer calculations
- scale easily with exponents
disadvantages of using floating point representation
we now need to store where the binary point is on the number line as well as the number that we want to store
in floating point representation, what are the fractions called
the mantissa
in floating point representation, what are the whole numbers called
the exponent