Single lesson · Written for OCR A Level (H446)

Converting floating point to denary and back – OCR A Level Computer Science lesson (H446)

Students learn to convert positive and negative floating point numbers to denary, and denary numbers to floating point via fixed point binary.

Also in a bundle Databases, SQL and Floating Point – OCR A Level Computer Science lessons (H446) 14 lessons for £45 · save 19% on buying separately

Lesson 9 of 14 in unit 13.1 Databases, SQL and Floating Point, taught in Year 13, Autumn 1. It answers one big question: How do we convert between floating point and denary?

By the end, students can convert positive and negative floating point numbers to denary, and denary numbers to floating point via fixed point binary.

The Build (the main task)
Calculate the denary value of the Saltmere ferry's stored trim reading 10110000 0011, then write −3.25 and 0.1 as 8-bit mantissa and 4-bit exponent, showing the fixed point step (6 marks).
Support version
Worked example of 3.25 → 11.01 → 0.1101 × 2² on the sheet, with the same steps as blank rows for each question and a two's complement reminder box (flip the bits, add 1 at the right-hand end).
Challenge
Explain why 0.1 can only be stored approximately, and how far the stored value is from 0.1.
Real-world link
The ferry's trim sensor stores how far the bow sits above or below level, including negative readings.
Key words
Fixed point, Binary point and Approximate, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“The bits after the binary point are worth tenths and hundredths, so 0.11 is 0.11 in denary”; “To make the mantissa negative, change the first bit to 1”.
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 all

Written for the specifications named. Not endorsed by or affiliated with any exam board.