abs(
abs(
VALUE
)

The abs( function calculates the absolute value of a number.

Parameters

This function has one parameter:

value – is the input value.

Description

The abs( function returns the absolute (positive) value of the numeric parameter. In other words, negative numbers become positive, while positive numbers stay positive.

    abs(4) ☞ 4
    abs(-4) ☞ 4
    abs(12.78) ☞ 12.78000
    abs(-12.78) ☞ 12.78000
    abs(5-3) ☞ 2
    abs(3-5) ☞ 2

See Also

- val( -- converts text into a number.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0