Why 0.1 + 0.2 is NOT 0.3 ?
Chai Aur Code
Visit on X@ChaiCodeHQ11K followers
33,292 views
Why 0.1 + 0.2 is NOT 0.3 ?
8 Comments
Comments from the original post on X (Twitter)

@deepanshu_s
I am surprised I never asked myself how decimals are stored as binary, wow you learn some new eventually !!
5 likes

@kumarnram
Now I am curious to know how Excel does it correctly.
4 likes

@Kumar41130209
Calculator shows 0.1+0.2 as 0.3
3 likes

@I_am_Nanak
Perfectly explained!!
3 likes

@Viswadityarao
So interesting. Different number systems have different properties (recurring /non recurring)(terminating/non terminating) for the same number. I work out the exact ruleset and reply here.
2 likes

@BhavayNagpal1
Amazing 🔥🔥
2 likes

@Prabhat_J24
Never thought about decimal values 😯
1 like

@KmSays25
Still everyone knows its wrong
