Re:Python, unlike C, has the mod operator always return a po...
by LudwigNagasena on Wednesday December 29, 2021 @06:09PM
(#29731327)
Mathematically, Euclidean division of two integers yields an integer. You don't need to define reals or rounding. Children learn how to do it before they learn about rational numbers.
[ Parent
| on HN ]
Re:Python, unlike C, has the mod operator always return a po...
by dotancohen on Thursday December 30, 2021 @12:58AM
(#29734094)
I invite you to ask your child how he would share three cookies with you. I've been asking variations of that question to all three of my children since they could talk.
Of interesting mathematical consequence, each of my children converged on the same solution at different ages. Them: three cookies. Daddy: zero cookies.