Computer-Science-A-level-Ocr
-
3-3-networks8 主题
-
3-2-databases7 主题
-
3-1-compression-encryption-and-hashing4 主题
-
2-5-object-oriented-languages7 主题
-
2-4-types-of-programming-language4 主题
-
2-3-software-development5 主题
-
2-2-applications-generation6 主题
-
2-1-systems-software8 主题
-
1-3-input-output-and-storage2 主题
-
1-2-types-of-processor3 主题
-
1-1-structure-and-function-of-the-processor1 主题
-
structuring-your-responses3 主题
-
the-exam-papers2 主题
-
8-2-algorithms-for-the-main-data-structures4 主题
-
8-1-algorithms10 主题
-
7-2-computational-methods11 主题
-
7-1-programming-techniques14 主题
-
capturing-selecting-managing-and-exchanging-data
-
entity-relationship-diagrams
-
data-normalisation
-
relational-databases
-
hashing
-
symmetric-vs-asymmetric-encryption
-
run-length-encoding-and-dictionary-coding
-
lossy-and-lossless-compression
-
polymorphism-oop
-
encapsulation-oop
-
inheritance-oop
-
attributes-oop
-
methods-oop
-
objects-oop
-
capturing-selecting-managing-and-exchanging-data
-
6-5-thinking-concurrently2 主题
-
6-4-thinking-logically2 主题
-
6-3-thinking-procedurally3 主题
-
6-2-thinking-ahead1 主题
-
6-1-thinking-abstractly3 主题
-
5-2-moral-and-ethical-issues9 主题
-
5-1-computing-related-legislation4 主题
-
4-3-boolean-algebra5 主题
-
4-2-data-structures10 主题
-
4-1-data-types9 主题
-
3-4-web-technologies16 主题
-
environmental-effects
-
automated-decision-making
-
computers-in-the-workforce
-
layout-colour-paradigms-and-character-sets
-
piracy-and-offensive-communications
-
analysing-personal-information
-
monitoring-behaviour
-
censorship-and-the-internet
-
artificial-intelligence
-
the-regulation-of-investigatory-powers-act-2000
-
the-copyright-design-and-patents-act-1988
-
the-computer-misuse-act-1990
-
the-data-protection-act-1998
-
adder-circuits
-
flip-flop-circuits
-
simplifying-boolean-algebra
-
environmental-effects
floating-point-addition-and-subtraction
Floating Point Arithmetic
How do you represent floating point numbers?
-
Floating point numbers are represented with a sign, mantissa, and exponent
-
Arithmetic operations must take into account these three components

Sections of a floating point number
Steps for adding or subtracting floating point numbers
-
Ensure the numbers have the same exponent before performing arithmetic
-
This might involve shifting the decimal point of one number and adjusting its exponent until both numbers have matching exponents.
-
Example:
-
Number A: 1.101×
-
Number B: 1.010×
-
Number A has an exponent of
and B has an exponent of
, we need to adjust B to have the same exponent as A
-
This is achieved by moving the point one space to the left in Number B and increasing the exponent by 1
-
Resulting in: 0.101×
-
-
-
Perform the binary addition or subtraction on the mantissa
-
-
Ensure the result is in a normalised form
-
The sum 10.010 exceeds the normal range for mantissa (1.0 to 1.111… in binary)
-
To normalise it, we shift the mantissa one position to the right and increment the exponent by 1
-
New Mantissa: 1.0010
-
New Exponent: Increment the exponent from
to
-
The final result would be 1.0010×
.
-
-
Determine Sign
-
For addition: If both numbers are positive or negative, the result takes the common sign
-
If they have different signs, the result’s sign depends on the larger absolute value
-
For subtraction: The sign is determined by the sign of the number you’re subtracting from and the result of the subtraction
-
Example addition
-
+ <img alt=”1.011 0 subscript 2 cross times 2 squared” data-mathml='<math ><semantics><mrow><mn>1.011</mn><msub><mn>0</mn><mn>2</mn></msub><mo>×</mo><msup><mn>2</mn><mn>2</mn></msup></mrow></semantics></math>’ height=”27″ role=”math” src=”data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Awrs%3D%22http%3A%2F%2Fwww.wiris.com%2Fxml%2Fmathml-extension%22%20height%3D%2227%22%20width%3D%2287%22%20wrs%3Abaseline%3D%2218%22%3E%3C!–MathML%3A%20%3Cmath%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1998%2FMath%2FMathML%22%3E%3Cmn%3E1.011%3C%2Fmn%3E%3Cmsub%3E%3Cmn%3E0%3C%2Fmn%3E%3Cmn%3E2%3C%2Fmn%3E%3C%2Fmsub%3E%3Cmo%3E%26%23xD7%3B%3C%2Fmo%3E%3Cmsup%3E%3Cmn%3E2%3C%2Fmn%3E%3Cmn%3E2%3C%2Fmn%3E%3C%2Fmsup%3E%3C%2Fmath%3E–%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%40font-face%7Bfont-family%3A’math17877d8d99e03ab35636d63f0bd’%3Bsrc%3Aurl(data%3Afont%2Ftruetype%3Bcharset%3Dutf-8%3Bbase64%2CAAEAAAAMAIAAAwBAT1MvMi7iBBMAAADMAAAATmNtYXDEvmKUAAABHAAAADxjdnQgDVUNBwAAAVgAAAA6Z2x5ZoPi2VsAAAGUAAAA3WhlYWQQC2qxAAACdAAAADZoaGVhCGsXSAAAAqwAAAAkaG10eE2rRkcAAALQAAAADGxvY2EAHTwYAAAC3AAAABBtYXhwBT0FPgAAAuwAAAAgbmFtZaBxlY4AAAMMAAABn3Bvc3QB9
Responses