Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Condiviso Nativa

math.abs

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

Non ancora tradotto

Sintassi

Lua
math.abs(x)

Parametri

Nome Tipo Predefinito Descrizione
x number The number to get the absolute value of.

Valore restituito

  • number