Progetto H — API Reference API & Scripting Documentation
Static function Shared Native

math.abs

Return the absolute, or non-negative value, of a given value

Syntax

Lua
math.abs(x)

Parameters

Name Type Default Description
x number The number to get the absolute value of.

Returns

  • number