Загрузка страницы

Why 0.1 + 0.2 = 0.30000000000000004 ? (V-10)

Have you ever tried simple calculations like below in usual programming languages like python, ruby, rust or Java etc

0.1 + 0.2 = 0.30000000000000004 or
0.1 + 0.7 = 0.7999999999999999 or
0.2 + 0.7 = 0.8999999999999999 or
0.3 - 0.1 = 0.19999999999999998

Why do the results show something unexpected? The reason pertains to IEEE standard IEEE-754 that defines 32bit/64 bit formats for storage of numbers in computers. This presentation tries to bring out simply of where the anomaly exists and why do we get these results.

Also reaffirms that the normal IEEE-754 floating point standard will not befit for usual finance and banking applications wherein few zero's can lead to undesired losses for some and unexpected gains for few.

Presentation content

0:00 Introduction
1:08 Python terminal check
1:42 IEEE
2:13 IEEE--754
3:30 Fractional binary numbers
4:26 Storing Numbers
4:56 Fixed Point Notation
5:06 Floating Point Notation
6:14 Sign, Exponent and Mantissa
7:21 Scientific Notation example
7:26 Base 10 and Base 2
9:11 Our problem 0.1 + 0.2
10:06 Conclusion
Do subscribe if you liked the video at https://www.youtube.com/channel/UCE-4SOAlvZdvuFwvuP3vmtg

Видео Why 0.1 + 0.2 = 0.30000000000000004 ? (V-10) канала Blockchain Nuts & Bolts
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
3 августа 2021 г. 12:42:19
00:11:19
Яндекс.Метрика