JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Math.abs() Function

Name

Math.abs() Function---compute an absolute value

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

Math.abs(x)

Arguments

x

Any number or numeric expression.

Returns

The absolute value of x.

Description

Math.abs() returns the absolute value of its single argument.

See Also

"Math"


Previous Home Next
Math Book Index Math.acos()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz