Skip to content
Fixed Point Maths Explained - Retro Programming episode artwork

EPISODE · Nov 14, 2021 · 17 MIN

Fixed Point Maths Explained - Retro Programming

from NCOT Technology · host juytre

A video explaining how fixed point maths works and why it is useful on CPUs that have no floating point units. A written version of this is available on my website, linked below Fixed point maths is a way to deal with decimal numbers, on systems where they don\'t have the ability to use decimals. The basic concept is to scale all numbers up by a certain amount to remove any decimal parts of the number. Then you can work with whole numbers only, scaling back down when needed. What scale you use depends on the range of numbers needed for a particular situation. It can also depend on what the hardware is best at managing. A Z80 CPU for example can work with 16 bit values reasonably easily. And if you’re not trying to do complex accurate scientific calculations, the resolution of your machine’s screen is likely to be a factor as well. But if you want a quick one to use, this explanation uses what is called 8.8 fixed numbers. That is a 16 bit value where the upper 8 bits are the whole number and the lower 8 bits the fractional part. With an imaginary binary point in the middle. Link to website: https://ncot.uk/devnotes/computing_maths/fixed_point_arithmetic/index.html Chapters 00:17 Maths is hard 00:56 Floating point maths 01:45 I have more videos! 03:53 What we\'re trying to do 04:57 Example with money 06:39 Introducing fixed point maths 08:28 negative numbers 10:39 Explaining fixed point 15:03 Summary

Episode metadata supplied by the publisher feed · Published Nov 14, 2021

Embed this episode

Ready to play

Fixed Point Maths Explained - Retro Programming

0:00 17:31

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of NCOT Technology?

This episode is 17 minutes long.

When was this NCOT Technology episode published?

This episode was published on November 14, 2021.

Can I download this NCOT Technology episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!