-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharray2.html
50 lines (36 loc) · 1.2 KB
/
array2.html
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
39
40
41
42
43
44
45
46
47
48
49
50
<!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>
// math objact
// abs method (convert into absolute value)
let a= Math.abs(-4.7)
console.log(a)
//ceil (convert automsticly int value form decimal but always let high if 4.1 than it let 5)
console.log(Math.ceil(4.1))
//floor ( (convert automsticly int value form decimal but always let low if 2.9 than it let 2))
console.log(Math.floor(2.9))
//`Round ((convert authomaticly in non decimal value according to general maths))
console.log(Math.round(4.5))
//max ((give maximum value ))
console.log(Math.max(22,45,67,77))
//min ((give minimum value ))
console.log(Math.min(22,45,67,77))
//PI give pi value
console.log(Math.PI)
//Pow give power
console.log(Math.pow(23,5))
//sqrt give square root
console.log(Math.sqrt(5))
//Random give random digit
console.log(Math.round(Math.random()*10))
console.log(Math.random())
p
</script>
</head>
<body>
</body>
</html>