Return the absolute value of a given number.
This function does not generate a change.
abs(number)
Argument | Type | Description |
---|---|---|
number | int/float (required) | Input number |
Returns with an int or float, depending on the input.
abs() function example:
`Absolute value of integer is: {abs(-42)}`;
Return value in JSON format
"Absolute value of integer is: 42"