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

How do you convert a number to positive?

How do you convert a negative number to positive?

1 answer

✓ Accepted answer

Use absolute value:

local num = -5

print(math.abs(num)) -->5

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