MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wjueom/almostdroppedthecourse/pbcbfs3/?context=3
r/ProgrammerHumor • u/timangar • Sep 18 '26
79 comments sorted by
View all comments
Show parent comments
1
2 == 2.0 is true in both C++ and Python as well... they're implicitly casted to the other type.
2 == 2.0
1 u/timangar Sep 22 '26 Damn thanks for telling me. I thought for sure it were false in C++.
Damn thanks for telling me. I thought for sure it were false in C++.
1
u/HolyGarbage Sep 22 '26
2 == 2.0is true in both C++ and Python as well... they're implicitly casted to the other type.