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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Panel talk on Cyberlaw, Cybercrime & Cybersecurity : My Opine](https://i.ytimg.com/vi/0ETGDOFbcOY/default.jpg)
![Multichain Blockchain Platform: Brief Introduction & Installation (M-1)](https://i.ytimg.com/vi/kBeNfT5zZyo/default.jpg)
![Play video from an IPFS hash (IPFS-4)](https://i.ytimg.com/vi/u98-kUyZ1Fw/default.jpg)
![InterPlanetary File System@IPFS : An approximate understanding (IPFS-1)](https://i.ytimg.com/vi/NffalDT-Aeo/default.jpg)
![Satoshi Paper "Bitcoin: A Peer-to-Peer Electronic Cash System" - Paragraph 4 @ Proof of Work](https://i.ytimg.com/vi/i3QDCl_tfug/default.jpg)
![What Blockchain means in simple terms? (V -1)](https://i.ytimg.com/vi/BkV4BQix8jQ/default.jpg)
![Satoshi Paper "Bitcoin: A Peer-to-Peer Electronic Cash System" - Paragraph 6 @ Incentives](https://i.ytimg.com/vi/JbhJBEgmmjI/default.jpg)
![What can be done about Decentralized social media apps?](https://i.ytimg.com/vi/UI5s22do53o/default.jpg)
![How To Check Linux OS Installation Date & Time @Ubuntu ?](https://i.ytimg.com/vi/o3RevXmI_pQ/default.jpg)
![Elliptic Curve Cryptography : Mechanics Inside (V-9)](https://i.ytimg.com/vi/0foepGDHX4E/default.jpg)
![Question to Panel on Decentralised web publishing: G20 Conference Crime & Security NFTs & Metaverse](https://i.ytimg.com/vi/bgW-1ba3vhE/default.jpg)
![Terminator Emulator - Multiple Linux Terminals @ Installation Ubuntu 22.04](https://i.ytimg.com/vi/UsgDFgICRfo/default.jpg)
![IEMIS-2022 : Blockchain enabled Internet-of-Vehicles on Distributed Storage](https://i.ytimg.com/vi/ngb27qiXAsw/default.jpg)
![Email TO-FROM an Ethereum Address](https://i.ytimg.com/vi/p0JhWHAaPaU/default.jpg)
![Download & Install IPFS Kubo (go-ipfs) on Linux & Ubuntu {2023}: Newer way](https://i.ytimg.com/vi/QuiVm5p2PWM/default.jpg)
![CREATE YOUR OWN FUNGIBLE CRYPTO TOKEN, TRANSACT AND SEE ON BLOCKCHAIN EXPLORER (ERC-20)](https://i.ytimg.com/vi/sjJcFsA73t0/default.jpg)
![Mining Mechanics in Blockchain (V-7)](https://i.ytimg.com/vi/4QqIINPdBBU/default.jpg)
![Blockchain enabled GIS](https://i.ytimg.com/vi/CHaEkJn0rqE/default.jpg)
![How to install anaconda on Ubuntu 22.10/22.04 LTS | Download and Install | 2023](https://i.ytimg.com/vi/M4CwEoPiltk/default.jpg)
![Read .CSV file in Jupyter notebook for Python from any directory Ubuntu 22.04/22.10](https://i.ytimg.com/vi/EM4zVVKIOBs/default.jpg)
![InterPlanetary File System@IPFS Installation & Initialization(IPFS-2)](https://i.ytimg.com/vi/C-nCosSp7Bs/default.jpg)