Home » MySQL Math ABS() Function

MySQL Math ABS() Function

by Online Tutorials Library

MySQL ABS() Function

The abs() is a Math function of MySQL. This function is used to get the absolute value of the given number.

Syntax

Parameters:

num: It is the number to get absolute value.

Returns

This function returns the absolute value of a number.

Example 1

Output:

MySQL Math ABS() Function

Example 2

Output:

MySQL Math ABS() Function

Example 3

Output:

MySQL Math ABS() Function

Example 4

Output:

MySQL Math ABS() Function

Example 5

Output:

MySQL Math ABS() Function

Next TopicMySQL Math

You may also like