-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumber.js
More file actions
171 lines (107 loc) · 3.4 KB
/
Copy pathNumber.js
File metadata and controls
171 lines (107 loc) · 3.4 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
Numbers And Math:
All About Numbers:
const score = 400
console.log(score);
const balace = new Number(100)
console.log(balace);
console.log(balace.toString().length);
console.log(balace.toFixed(2)); //100.00
console.log(balace.toFixed(1)); //100.0
console.log(balace.toFixed(3)); //100.000
const otherValue = 23.8965
console.log(otherValue.toPrecision(3)); // 23.9
const otherValue1 = 123.8965
console.log(otherValue1.toPrecision(3)); //124
const otherValue2 = 1123.8965
console.log(otherValue2.toPrecision(3)); //1.12e+3
const otherValue3 = 123.8965
console.log(otherValue3.toPrecision(4)); // 123.9
const otherNumbers = 100000000000000000000
console.log(otherNumbers.toLocaleString('en-BD','en-IN'));
*/
/*
If you want to learn about "Number" :
"If you want to know about this Number function{f},then go to click :
-->newTab-->inspect-->console-->[[Prototype]]: Number."
[[Prototype]]: Number ; constructor: ƒ Number() ; toExponential: ƒ toExponential() ; toFixed: ƒ toFixed() ; toLocaleString: ƒ toLocaleString() ; toPrecision: ƒ toPrecision() ; toString: ƒ toString() ; valueOf: ƒ valueOf()
...............
[[Prototype]]: Object ; [[PrimitiveValue]]: 0 ; [[PrimitiveValue]]: 100 ; undefined.
Number :
ƒ Number() { [native code] }
Number.
//Number.এর পরে যেকোনো ফাংশন বসানো যাবে Suggestion-List অনুযায়ী,
Like:Number.EPSILON
+++++++++++++++++++++++ X +++++++++++++++++++++++++
*/
/*
All About Maths:
console.log(Math);
console.log(Math.abs(-4)); //4 {positive 4} and {positive 4/+4 ==> 4.}
console.log(Math.round(-4.35)); // 4
console.log(Math.round(-4.6)); // 5 / -5
console.log(Math.ceil(4.32)); //5
console.log(Math.floor(4.9)); //4
console.log(Math.max(4,5,8,9,12,18)); //18
console.log(Math.min(4,5,8,9,12,18));//4
console.log(Math.random());
console.log((Math.random()*10)+1);
console.log(Math.floor(Math.random()*10)+1);
const min=10
const max=20
console.log(Math.floor(Math.random()*(max-min+1))+min);
*/
/*
If you want to learn about "Math" :
"If you want to know about this Math function{f},then go to click :
-->newTab-->inspect-->console-->[[Prototype]]: Math."
console.log(Math); ==> VM365:1
Math {abs: ƒ, acos: ƒ, acosh: ƒ, asin: ƒ, asinh: ƒ, …}
E: 2.718281828459045
LN2: 0.6931471805599453
LN10: 2.302585092994046
LOG2E: 1.4426950408889634
LOG10E: 0.4342944819032518
PI: 3.141592653589793
SQRT1_2: 0.7071067811865476
SQRT2: 1.4142135623730951
abs: ƒ abs()
acos: ƒ acos()
acosh: ƒ acosh()
asin: ƒ asin()
asinh: ƒ asinh()
atan: ƒ atan()
atan2: ƒ atan2()
atanh: ƒ atanh()
cbrt: ƒ cbrt()
ceil: ƒ ceil()
clz32: ƒ clz32()
cos: ƒ cos()
cosh: ƒ cosh()
exp: ƒ exp()
expm1: ƒ expm1()
f16round: ƒ f16round()
floor: ƒ floor()
fround: ƒ fround()
hypot: ƒ hypot()
imul: ƒ imul()
log: ƒ log()
log1p: ƒ log1p()
log2: ƒ log2()
log10: ƒ log10()
max: ƒ max()
min: ƒ min()
pow: ƒ pow()
random: ƒ random()
round: ƒ round()
sign: ƒ sign()
sin: ƒ sin()
sinh: ƒ sinh()
sqrt: ƒ sqrt()
tan: ƒ tan()
tanh: ƒ tanh()
trunc: ƒ trunc()
Symbol(Symbol.toStringTag): "Math"
[[Prototype]]: Object
++++++++++++++++++++ X ++++++++++++++++++++++++
*/