'abs()' Example : Math « Javascript Objects « JavaScript DHTML






'abs()' Example

 
    
<html>
<body>
<button onclick="alert(Math.abs(-10));">Math.abs(-10)</button>
</body>
</html>

    
      
        
  








Related examples in the same category

1.Math functions
2.'acos()' Example
3.'asin()' Example
4.'atan()' Example
5.'atan2()' Example
6.'ceil()' Example
7.'cos()' Example
8.'E' Example
9.'exp()' Example
10.'floor()' Example
11.'isNaN()' Example
12.'LN10' Example
13.'LN2' Example
14.'log()' Example
15.'LOG10E' Example
16.'LOG2E' Example
17.'max()' Example
18.'MAX_VALUE' Example
19.'min()' Example
20.'MIN_VALUE' Example
21.'NEGATIVE_INFINITY' Example
22.'parseFloat()' Example
23.'parseInt()' Example
24.'PI' Example
25.'POSITIVE_INFINITY' Example
26.'pow()' Example
27.'round()' Example
28.'sin()' Example
29.'sqrt()' Example
30.'SQRT1_2' Example
31.'SQRT2' Example
32.'tan()' Example