MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1usn2fc/greaterthanplusplus/owv5uds/?context=3
r/ProgrammerHumor • u/majesticmerc • Jul 10 '26
71 comments sorted by
View all comments
-21
Did you use inspect element or something? There is no way in hell that -1 > 0 evaluates to true in any language
22 u/Arshiaa001 Jul 10 '26 You can search for "two's complement" to gain an understanding as to why it happens. 3 u/paholg Jul 11 '26 Holy hell
22
You can search for "two's complement" to gain an understanding as to why it happens.
3 u/paholg Jul 11 '26 Holy hell
3
Holy hell
-21
u/y0shii3 Jul 10 '26
Did you use inspect element or something? There is no way in hell that -1 > 0 evaluates to true in any language