View Single Post
Old 22 February 2012, 23:06   #100
dazzleman
Registered User

 
Join Date: Aug 2008
Location: UK
Posts: 20
The MOD command stands for Modulo and returns the remainder from a division. So in my previous statement:

Code:
If \y MOD 2=0 Then \y=\y-1
is essentially saying If the remainder of \y divided by 2 is equal to zero then reduce \y by one. It is used here to determine if \y is odd or even, an even number divided by 2 will have a remainder of 0 while an odd number divided by 2 will have a remainder of 1.
dazzleman is offline  
 
Page generated in 0.05064 seconds with 9 queries