Skip to main content
Version: 7.9

abs

This function is used by Ignition's Expression language.

Description

Returns the absolute value of number.

Syntax

abs(number)

  • Parameters

    • int/float number - The number to get the absolute value of.
  • Results

    • int/float - The absolute value of the number provided.

Examples

Code Snippet
abs(-4) //returns 4