Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does the Modules Operator work?

Asked by 4 years ago

I've never really seen a use for the module operator, but I'm curious on how it works and what it could be used for. I'm sure it's really important.

It's the only operator I've never looked much into.

0
Do you mean modulo operator? ScuffedAI 435 — 4y
1
If that's the case you can read more about it here: https://stackoverflow.com/questions/17524673 ScuffedAI 435 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

The modulo operator gives you the remainder from a division. That was just a quick google search.

% Modulus Operator and remainder of after an integer division. B % A will give 0 Read about operators.

Ad
Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

I'm not the most confident scripter but I found a link here to explain it all - https://developer.roblox.com/en-us/recipes/Test-for-Odd-or-Even-Numbers //////// Apparently its for testing odd or even numbers in lua.

Answer this question