Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/10/06 21:10
Read: times


 
Msg Score: -2
 -1 Didn't Search First
 -1 Off-Topic
#129255 - Keil % operator
Would someone please explain the meaning of the "%" symbol used in Keil c51? Here is an example used in Atmels LCD program:

rownr= rownr%NB_ROW; /* make sure position is in limits */
colnr= colnr%NB_COL; /* make sure position is in limits */

Some how this code verifies that the data sent to a cursor setting routine is with in the range of the lcd currently used.

Thanks
Brian


List of 3 messages in thread
TopicAuthorDate
Keil % operator            01/01/70 00:00      
   its called the modulo division operator\\\'mod\\\'            01/01/70 00:00      
   Nothing Keil-specific            01/01/70 00:00      

Back to Subject List