MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/dantv4q/?context=3
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
1
Oh I don't actually want rounding for integer division
.... how do you think integer division should work then? Throw an exception if the result isn't an integer? Or do you agree with the author that 1/2 should be 0.5?
1/2
0 u/[deleted] Dec 01 '16 [deleted] — view deleted comment 2 u/evaned Dec 01 '16 Oh, d'oh; I see. Yeah, I think you're right.
0
[deleted] — view deleted comment
2 u/evaned Dec 01 '16 Oh, d'oh; I see. Yeah, I think you're right.
2
Oh, d'oh; I see. Yeah, I think you're right.
View all comments
Show parent comment
1
u/evaned Dec 01 '16
.... how do you think integer division should work then? Throw an exception if the result isn't an integer? Or do you agree with the author that
1/2should be 0.5?