Quantcast
Channel: Answers for "Is there a modulus operator in Unity JavaScript?"
Viewing all articles
Browse latest Browse all 8

Answer by photon

$
0
0

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)


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>