math.abs()
math.abs(n) returns the absolute value of n.
Returns
if
nis a number, returns the absolute value ofn(i.e. it returnsnifn >= 0, and-nifn < 0).if
nis not a number, returnsnull.
Last updated
Was this helpful?
math.abs(n) returns the absolute value of n.
if nis a number, returns the absolute value of n(i.e. it returns nif n >= 0, and -n if n < 0).
if nis not a number, returns null.
Last updated
Was this helpful?