4 ms·
Yes, `%` is division. It's not that odd, if you look at the symbol - it looks quite similar to the division symbol `÷`. It's almost better asking where C got t
by icen 9y ago
Yes, `%` is division. It's not that odd, if you look at the symbol - it looks quite similar to the division symbol `÷`.
It's almost better asking where C got the idea that it should be mod from!
- Something1234 9y agoSo where did C get the idea to `%` for mod?
- sndean 9y agoIt looks like % has a different use in BCPL, but it's used for mod in B [0], so I'm guessing it's a Thompson/Ritchie invention? (unless it came from some other language that came before B) [0] https://www.bell-labs.com/usr/dmr/www/btut.html https://www.bell-labs.com/usr/dmr/www/btut.html