↧
Answer by photon
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 The value of this operation is the division remainder (9%2 = 1)
View ArticleAnswer by InoGamalinda
The % operator is the Remainder operator Example: > -3 % 3 -> 0>> -2 % 3 -> -2>> -1 % 3 -> -1 >> 0 % 3 -> 0 >> 1 % 3 -> 1>> 2 % 3 -> 2>> 3 % 3...
View Article