Thread: %
View Single Post
  #6  
Old 01-16-2002, 08:19 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
% mod; a%b = a - int(a/b)*b;
its used for things like when you want to find the left over value of something...

like you have 38 apples and this guy takes 35 apples if you say something like

currentapples%35 would = 3
__________________
Thanks,
-KJL
Reply With Quote