From my understanding of modulus division, it will only work on integers. Using modulus returns the remainder of the division, and if you are using doubles for division there is no remainder.
Using 16 and 5 as integers, 16/5 will return a 3, and 16%5 will return the 1 remainder.
Using them as...
I am trying to display a game board using ascii characters. My initial attempts were successful, but something strange has happened, and I don't know what to do.
I am storing information in a two-dimensional array of a user-defined object type. Within this object class is a character code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.