abs

Return the absolute value of a given number.

This function does not generate a change.

Function

abs(number)

Arguments

Argument Type Description
number int/float (required) Input number

Return value

Returns with an int or float, depending on the input.

Example

abs() function example:

`Absolute value of integer is: {abs(-42)}`;

Return value in JSON format

"Absolute value of integer is: 42"