Floating point: mantissa and exponent – OCR A Level Computer Science lesson (H446)
Students learn to identify the mantissa and exponent of a floating point number and convert a positive one to denary.
Lesson 8 of 14 in unit 13.1 Databases, SQL and Floating Point, taught in Year 13, Autumn 1. It answers one big question: How can a few bits hold both huge and tiny numbers?
By the end, students can identify the mantissa and exponent of a floating point number and convert a positive one to denary.
- The Build (the main task)
- Calculate the denary values of three Saltmere Ferries tide gauge readings stored with an 8-bit mantissa and 4-bit exponent, both two's complement, showing where the binary point moves each time (Reading A: 01100100 0011, Reading B: 01010000 0001, Reading C: 01110000 1111) (6 marks).
- Support version
- A conversion grid for each reading: place values for the mantissa (−1, ½, ¼ …) printed, then rows for 'exponent in denary', 'point moves … places' and 'value'.
- Challenge
- Calculate the largest value this 8-bit mantissa and 4-bit exponent can store, and explain why it is not 2⁸.
- Real-world link
- Saltmere's tide gauge sends sea-level readings that must be stored in a small number of bits.
- Key words
- Floating point, Mantissa and Exponent, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “The first bit of the mantissa is an ordinary digit, so 01101000 means 1101000”; “The exponent is multiplied by the mantissa, so exponent 3 means 'times 3'”.
- OCR H446 specification
- 1.4.1 (g).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Students can do it all on paper.
Also sold in the Databases, SQL and Floating Point unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to write and interpret SQL queries using SELECT, FROM, WHERE (with AND, OR) and ORDER BY on one table.
Free sample lessonStudents learn to write SQL that joins two tables on a foreign key and filters records with LIKE and wildcards.
Students learn to write INSERT INTO, UPDATE, DELETE and DROP statements and predict exactly which records each one changes.
Written for the specifications named. Not endorsed by or affiliated with any exam board.