|
is there a mod operator? example c = b%a or c = b mod a e.g., 5%2 = 1
(comments are locked)
|
|
Yes,
returns true every 10 frames Sweet. Thanks. I was using it with = overloaded i.e., %=, and got an error.
Aug 21 '10 at 10:18 PM
uni
(comments are locked)
|
|
You can. Just Do (a = a % b) because (a %= b) does not work...
(comments are locked)
|
|
If you are looking for a math function though, just use Javascripts %-operator. Meaning, if you want to calculate number mod 2 use number%2
(comments are locked)
|
