+ 1
Whats the utility of the modulo operation.
I took a long time for my stupid self to get it, and now I don't get the point. How is this useful?
2 Réponses
+ 1
It's how you find the remainder from division and return it as an integer number. You know, 11 divided by 5 equals 2 with a remainder of 1. Of course, you could always use a float/double and get a result of 2.5 instead, if that's what you're wanting.
+ 1
It's useful, for programs involving math, fields, GUI geometry, algorithm: euclidean( GCD), i can think of another use for a game. In python, you not only get the remainder, but the whole number as well which can serve a purpose.
Modulo is like rock climbing and you're rappeling down