ABS function in Teradata

ABS function computes absolute of a given value.

SELECT abs(-7)

result will be

ABS function converts negative number to positive, and when positive number is input same value is returned without any modification.

If the input is string, the value is converted to float value

select abs('56')

result will be