What is math.abs exactly doing?

It’s usually to convert a negative number to a positive one

print(math.abs(1)) --Prints 1
print(math.abs(-1)) -- Prints 1

The thign you’re mentioning is math.round

18 Likes