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
🎓Like my style of teaching? Try free chapters of my online courses: https://pythonforeveryone.com
#pythonforeveryone #programming #python
Поделиться в:
Доступные форматы для скачивания:
Скачать видео mp4
Информация по загрузке:
Скачать аудио mp3
Похожие видео
array(10) {
[0]=>
object(stdClass)#4991 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "PZRI1IfStY0"
["related_video_title"]=>
string(38) "Floating Point Numbers - Computerphile"
["posted_time"]=>
string(20) "11 лет назад"
["channelName"]=>
string(13) "Computerphile"
}
[1]=>
object(stdClass)#4964 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "2SIHrXWQA5A"
["related_video_title"]=>
string(70) "Плавающая точка наносит ответный удар"
["posted_time"]=>
string(19) "8 лет назад"
["channelName"]=>
string(11) "ExtremeCode"
}
[2]=>
object(stdClass)#4989 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "2gIxbTn7GSc"
["related_video_title"]=>
string(52) "Why Is This Happening?! Floating Point Approximation"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(4) "b001"
}
[3]=>
object(stdClass)#4996 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "NQSVF9WB_ds"
["related_video_title"]=>
string(65) "THIS Is How You SHOULD Be Comparing FLOATS (Accurately) In Python"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(8) "Indently"
}
[4]=>
object(stdClass)#4975 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "bbkcEiUjehk"
["related_video_title"]=>
string(42) "How Floating-Point Numbers Are Represented"
["posted_time"]=>
string(27) "6 месяцев назад"
["channelName"]=>
string(13) "Spanning Tree"
}
[5]=>
object(stdClass)#4993 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "wDmPgXhlDIg"
["related_video_title"]=>
string(121) "Python — полный курс для начинающих. Этот навык изменит твою жизнь."
["posted_time"]=>
string(19) "1 год назад"
["channelName"]=>
string(39) "Александр Ильин про IT"
}
[6]=>
object(stdClass)#4988 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "RnHC1XiNWS8"
["related_video_title"]=>
string(94) "Венедиктов – страх, Симоньян, компромиссы / вДудь"
["posted_time"]=>
string(19) "4 дня назад"
["channelName"]=>
string(10) "вДудь"
}
[7]=>
object(stdClass)#4998 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "ssDBqQ5f5_0"
["related_video_title"]=>
string(48) "computers suck at division (a painful discovery)"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(9) "Low Level"
}
[8]=>
object(stdClass)#4974 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "P2R4szyyFuA"
["related_video_title"]=>
string(35) "Why is 0.1 + 0.2 Not 0.3 in Python?"
["posted_time"]=>
string(21) "3 года назад"
["channelName"]=>
string(10) "NeuralNine"
}
[9]=>
object(stdClass)#4992 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "Oo89kOv9pVk"
["related_video_title"]=>
string(76) "Wait, so comparisons in floating point only just KINDA work? What DOES work?"
["posted_time"]=>
string(21) "3 года назад"
["channelName"]=>
string(8) "SimonDev"
}
}