What is the formula to find the greatest postive value that can be represented in two's complement using n bits ?
(2^n-1)-1
Provide an example where we use hexadecimal notation to represent data in computing and explain why we do not use binary?
We use hexidecimal notation for colourcodes
Hexadecimals have a shorterrepresentation of a number than binary
What are the advantages of normalisation?
A unique representation of each number
makes sure they are as precise as possible in a given number of bits
What are the advantages of floating-point ?
Unlike fixed-point systems, floating-point allows for greater precision when working with fractional numbers
Can represent a wide range of values that are either very large or very small
What are the advantages of fixed-point system
Fixed-point is simpler system than floating point therefore arithemetic operations are quicker
Fixed-point systems require simpler hardware therefore they are easier and simpler to implement
Explain the term mantissa in the context of the floating-point binary representation of numbers?
The mantissa is the part of a floating-point binary number that represents the significantdigits of the value.
It is combined with the exponent to determine the overall number. In normalized form, the mantissa's most significant bit is typically 1.
Explain the term exponent in the context of the floating-point binary representation of numbers?
The exponent in floating-point binary representation specifies the power of 2 by which the mantissa is multiplied.
It is stored in a biased form, allowing the representation of both positive and negative exponents.
In the context of floating point, explain what overflow is and give an example of a situation which might cause overflow to occur in the context of floating point.
Overflow is when a number exceeds the maximum value that can be represented with the number of bits available
Example: if floating point system has a maximum exponent value of 127, trying to represent a value large than 2^127 will cause overflow.