Skip to main content

ABS

Returns the absolute value of a number. The absolute value of a number is the number without its sign.

Use

ABS( number )
Returns the absolute value of a number.

ParameterRequiredDescription
numberYesthe number to return the absolute value of

ReturnsNumber

Use with literals

ABS(-192.62)

returns 192.62

Use with fields

ABS($Amount)

if variable field $Amount is -24, returns 24

Use with expressions

ABS($Amount * LEN(@inp.Name))

if variable $Amount is -24 and length of input field @inp.Name is 10, returns 240