-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMath.html
More file actions
38 lines (37 loc) · 1.09 KB
/
Copy pathMath.html
File metadata and controls
38 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
console.log(Math.PI);
console.log(Math.E);
console.log(Math.LN2);
console.log(Math.LN10);
console.log(Math.LOG2E);
console.log(Math.SQRT1_2);
console.log(Math.SQRT2);
console.log(Math.abs(-16));
console.log(Math.round(3.42));
console.log(Math.ceil(3.42));
console.log(Math.floor(3.42));
console.log(Math.max(3.12,4.5));
console.log(Math.min(-6,-11));
console.log(Math.random());
console.log(Math.trunc(3.32));
console.log(Math.pow(2,3));
console.log(Math.sqrt(4));
console.log(Math.sin(120));
console.log(Math.cos(30));
console.log(Math.tan(45));
console.log(Math.asin(10));
console.log(Math.acos(20));
console.log(Math.atan(10));
var num = new Number(13.37);
console.log(num.toFixed(1));
</script>
</head>
<body>
</body>
</html>