Lesson 21 of 26 · about 16 min
Floats and approximation
Computers store most decimals only approximately, so 0.1 + 0.2 isn't exactly 0.3. Instead of exact answers, good programs find answers that are close enough, fast.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- Floating-point error
- Guess-and-check
- Bisection search
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.