1. What is a Floating-Point Number?

Imagine you have a long number like 123.456. Sometimes, numbers are very big like 1000000.0, or very small like 0.000001. A floating-point number is a way for the computer to store these numbers, no matter how big or small they are.

2. Parts of a Floating-Point Number

A floating-point number is stored in three parts:

Think of it like a scientific notation:

image.png

3. What Does This Mean?

4. Example: Storing 5.75

Let’s see how to store the number 5.75: