Hacker Newsnew | past | comments | ask | show | jobs | submit | mathiaskindberg's commentslogin

For anyone wondering about the term "modular":

> In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book Disquisitiones Arithmeticae, published in 1801.

https://en.wikipedia.org/wiki/Modular_arithmetic


Modular/modulus (and also twos complement) is a natural feature of most CPUs. It comes natural by the way logic counters work in hardware. C enforces that by not touching that logic. Rust is the same in that respect. Python on the other hand treats integers as objects with a virtually unlimited amount of digits. That said, float/double precision and logic is still CPU dependent and is used as-is for most languages.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: