May 2001
Intermediate to advanced
720 pages
23h 24m
English
Math.min( ) Method — determine the smaller of two numbers
Flash 5; may be used when exporting Flash 4 movies
Math.min(x, y)
A number.
A number.
The smaller of x and
y.
Math.min(5, 1); // Returns 1 Math.min(-6, -5); // Returns -6
Reader Exercise: Modify the example under Math.max(
) to return the minimum value in an array rather than the
maximum.
Math.max( )
Read now
Unlock full access