JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Math.max() Function

Name

Math.max() Function---return the larger of two values

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

Math.max(a, b)

Arguments

a, b

Any two numeric values or expressions.

Returns

The larger of the two values a and b.

Description

Math.max() returns whichever of its two arguments is larger.

See Also

"Math", "Math.min()"


Previous Home Next
Math.LOG2E Book Index Math.min()

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