Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ABS

Example

Provide the absolute value of a number.

SELECT ABS(243.5);  

Definition and Usage

The ABS() function yields the absolute (positive) value of a number.

Syntax

ABS(number)

Parameter Values

Parameter

Description

number

Mandatory. A numerical value is required.

Technical Details

Works in: From MySQL 4.0