Re:Why Is Python So Popular in 2025? – The PyCharm Blog
by librasteve on Thursday October 02, 2025 @09:39AM
(#45449463)
I am not “missing the point”, I am disagreeing with you. (Hopefully in an agreeable way)
I am making the point that using a decimal literal (eg 0.1) representation for a IEEE double is a bad choice and that using it as a representation for a Rat (aka Fraction) is a better choice.
I 100% accept your point that in Python 0.1+0.2>0.3 is true which is why I prefer Raku’s number system.
The REPL example intends to show what the program does, not whether or not something is intuitive for you.
Second, using your same argumentation,
Is also wrong.It's based on a misunderstanding of what representations of numbers in programming languages are.
In Python (and almost all other languages), 0.1 means the IEEE float closest to the decimal number 0.1, and arithmetic operations are performed according to the IEEE standard.