Math.abs Method

Usage:

Math.abs(number)

Description

Returns the absolute value of a number

arguments

number - The numeric expression for which the absolute value is needed

Return value

The absolute value of the number argument

Example

Math.abs(-10.222)

TEST:

Standard

ECMAScript 262 Edition 1,2,3

Supported in