Thread: Modulo operator
View Single Post
  #2  
Old 10-17-2010, 09:55 AM
Matt L Matt L is offline
Registered User
 
Join Date: Oct 2005
Posts: 4,263
Was there a question in there somewhere?

Note that in C, 500/60 is 8. No need for floor, as it is an integer operation. This can and does bite you with negative numbers, so be careful what you ask the compiler to do.
Reply With Quote