Site icon Database Tutorials

ABS Function in SQL Server(TSQL)

The ABS function returns the positive value of a negative number. The return data type is the data type of the input parameter. The ABS function has no effect on 0 and positive numbers.

Below you can see how the ABS function behaves at different values.

Exit mobile version