Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

abs returns the absolute value of a number.

Syntax

abs(number x)
  • x is the number to return the absolute value of.

Examples

abs(-1)  // 1
abs(1.5) // 1.5