math.abs

Absolute value

Prototype

v = math.abs (v)

Description

Absolute value of v.

math.abs (-5) --> 5

Lua functions

Topics