Bifalgorithm post · Computer science one · Type Juggling
How does the modulo operator calculate remainders in PHP?
How does the modulo operator calculate remainders in PHP? (Computer science one · Type Juggling) — "$x = 10 % 5; //x is 0\n\n$x = 10 % 3; //x is 1\n\n$x = 29 %…
Ideas in this flowchart
- Opérateur modulo (%)
- Calcule le reste de la division entière entre deux nombres.
- 10 % 5 donne 0.
- 10 % 3 donne 1.
- 29 % 5 donne 4.