Could fix it myself of course, but I do not want to enter wrong information
This one:
- While the example "13 % 3 is 1 (13 = 4 * 3 + 1)" is easy, the following confuses me:Modulo, indicated using % as it is in most programming languages, is the remainder after division. For example, 13 % 3 is 1 (13 = 4 * 3 + 1). This can be used, for example, to separate out individual digits of a number for use in building visual indicators, along with division:
just seems to be wrong. There is an older version of that part:(24321 / 10000) % 10 = 2
(24321 / 1000) % 10 = 4
(24321 / 100) % 10 = 3
(24321 / 10) % 10 = 2
(24321 / 1) % 10 = 1
https://wiki.factorio.com/index.php?tit ... did=138178
which seems to be correct and nowhere the same as above.Modulo: marked somewhat confusingly as %, is the remainder after division. For example 10 modulo 3 is 1 (3*3=9, remainder 1). This can be used for example to separate out thousands, hundreds, tens and ones for use in building visual indicators. e.g.
24321 modulo 10000 = 4321
24321 modulo 1000 = 321
24321 modulo 100 = 21
24321 modulo 10 = 1