4.5.4 Binary Number System Flashcards
What are the two kinds of binary numbers?
Signed
Unsigned
What are unsigned binary numbers?
Unsigned binary numbers can only represent positive numbers.
What does signed binary allow for?
Signed binary allows for the representation of negative numbers using binary.
What does the range of numbers that can be represented by unsigned binary number depend on?
The range of numbers that can be represented depends on the number of bits available.
What is the pattern to the range of numbers that can be represented?
For n bits, there are 2^n possible permutations of the bits, giving a range of decimal numbers from 0 to (2^n) - 1
What does twos complement allow for?
The representation of both positive and negative numbers in binary.
How does two’s complement work?
• The most significant bit of a number is given a negative place value.
What is the range of two’s complement numbers?
Given a certain number of bits, the range of two’s complement signed binary number includes both positive and negative values.
What is the range of two’s complement numbers?
The range of a two’s complement signed binary number:
2^(n-1)) - 1 to -2^(n-1
What are the two means of representing binary numbers with a fractional part?
- Fixed point form
* Floating point form
How does fixed point work?
The specified number of bits are placed before a binary point and the remaining bits fall behind the binary point.
Why may fixed point and floating point representations of decimal numbers be inaccurate?
There are many numbers that binary cannot accurately represent, there are some numbers which binary can only approximately represent.
Why may you use absolute and relative errors?
In order to see how close a particular number is to an actual value.
What is an absolute error?
Is the actual amount by which a value is inaccurate and can be calculated by finding the difference between the given value and the actual value
What is relative error?
A measure of uncertainty in a given value compared to the actual value, which is relative to the size of the given value.