Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a division sign in scripting?

Is there a sign for division, inside of scripting?

3 answers

✓ Accepted answer

I know * is multiply so I presume / is divide, sorry if this does not help

The division sign in lua is '/'

For example, let's say I want to divide 12 by 6:

a = 12/6 -- '12/6' is the equation and 'a' is the answer
print(a) -- Here it prints the answer onto the output

In the output it would say "2."

This discussion is preserved as it was. New answers, comments, and votes are closed.