MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mtpxbr/iteration/gv1kkf3/
r/badcode • u/[deleted] • Apr 19 '21
122 comments sorted by
View all comments
Show parent comment
0
Then why does true/true = 1?
9 u/skjall Apr 19 '21 Because `1/1 == 1`? If you swap true and false out for 1 and 0 respectively, both operations make perfect sense. 1 u/[deleted] Apr 19 '21 Hmmm yea you're right
9
Because `1/1 == 1`? If you swap true and false out for 1 and 0 respectively, both operations make perfect sense.
1
Hmmm yea you're right
View all comments
Show parent comment
0
u/[deleted] Apr 19 '21
Then why does true/true = 1?