abs

abs(n)

Valore assoluto di <n>.

Esempio 1. Esempio abs

print("abs(-5) = " .. abs(-5))
assert(abs(-5) == 5)