floating point form Flashcards
what is fixed point binary
when the numbers have a predetermined number of bits before and after the point
advantages of fixed point
makes numbers easier to process
disadvantages of fixed point
they cannot represent the range or accuracy of numbers that may be required
what are floating point numbers
when the number is expressed in m x 10^n where m is known as the mantissa and n is the exponent
if the number is positive, what should it start with, in floating point form
01
if the number is negative, what should it start with in floating point form
10
what does it mean for a number to be normalised
it either starts with 10 or 01
what does the mantissa do
scales the mantissa by a power of two
floating point formula
FloatingPoint=Mantissa×2
^Exponent
why is normalisation important
- ## ensures that the floating point number is stored in a consistent format, maximizing precision
floating vs fixed point : range
fixed point - Limited to a specific range based on the fixed number of digits for the integer part.
floating point - has a large range due to the scaling by the exponent
floating point vs fixed point : speed
fixed point - Faster in simple hardware (e.g., embedded systems) since the calculations are straightforward.
floating point -
Slower because floating point operations involve more complex calculations (e.g., adjusting the exponent).
uses of fixed vs floating point
Fixed point: Good for applications where speed is important and the range of values is small (e.g., financial systems).
Floating point: Better for representing a wide range of values but more complex in terms of calculations (e.g., scientific calculations, graphics processing).
what is an absolute error
The difference between the exact value and the approximate value stored in the system.
what is a relative error
The absolute error divided by the exact value.