0.1 + 0.2 = 0.30000000000000004. Floating point precision problem.

preview_player
Показать описание
You might have seen these strange long numbers before and if you are watching this video, you probably want to know why it happens. In this video you learn about the floating point precision problem in programming languages.

C H A P T E R S
0:10 The well know problem of funny huge imprecise numbers in Python
1:04 Fractions cause inaccuracy in decimal numbers
1:45 How binary conversion causes inaccurate numbers
3:00 This is not a Python specific problem
3:16 Solve floating point precision with Decimal data types

M Y O N L I N E T R A I N I N G

#pythonforeveryone #programming #python
Рекомендации по теме