aboutsummaryrefslogtreecommitdiff
path: root/files/bn/web/javascript/reference/global_objects/number/isfinite/index.html
blob: 0ad18815ef614284bd9238510925eb6c1b996baa (plain)
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
---
title: Number.isFinite
slug: Web/JavaScript/Reference/Global_Objects/Number/isFinite
translation_of: Web/JavaScript/Reference/Global_Objects/Number/isFinite
---
<div>
<div>{{JSRef}}</div>
</div>

<h2 id="সারসংক্ষেপ">সারসংক্ষেপ</h2>

<p>পাস করা ভ্যালু সসীম কিনা তা জানায়। গ্লোবাল <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite"><code>isFinite</code></a> এর উন্নততর সংস্করণ।</p>

<h2 id="Syntax" name="Syntax">সিনট্যাক্স</h2>

<pre class="syntaxbox"><code>Number.isFinite(test<em>Value</em>);</code></pre>

<h3 id="Parameters" name="Parameters">প্যারামিটার</h3>

<dl>
 <dt><code>test<em>Value</em></code></dt>
 <dd>সে সংখ্যা পরীক্ষা করে বলা হবে সসীম কিনা।</dd>
</dl>

<h2 id="বিবরণ">বিবরণ</h2>

<p>গ্লোবাল <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite"><code>isFinite</code></a> ফাংশনটির সঙ্গে তুলনা করে বলা যায়, এই মেথডটি জোর পূর্বক প্যারামিটারকে সংখ্যার রুপান্তর করে না। কেবলমাত্র যে সকল নাম্বার টাইপের আর্গুমেন্ট সসীম সংখ্যা হবে, তাদের জন্যই মেথডটি <code>true</code> রিটার্ন করবে।</p>

<h2 id="উদাহরণ">উদাহরণ</h2>

<pre class="brush:js;">Number.isFinite(Infinity);  // false
Number.isFinite(NaN);       // false
Number.isFinite(-Infinity); // false

// all other numbers true
Number.isFinite(0);
Number.isFinite(2e64);

// everything else is false
Number.isFinite("0");       // false, would've been true with global isFinite
</pre>

<h2 id="Polyfill">Polyfill</h2>

<pre class="brush: js">Number.isFinite = Number.isFinite || function(value) {
    return typeof value === "number" &amp;&amp; isFinite(value);
}
</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>
    <p>{{SpecName('ES6', '#sec-number.isfinite', 'Number.isInteger')}}</p>
   </td>
   <td>{{Spec2('ES6')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome("19")}}</td>
   <td>{{CompatGeckoDesktop("16")}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatOpera("15")}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoMobile("16")}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also" name="See_also">See also</h2>

<ul>
 <li>The {{jsxref("Global_Objects/Number", "Number")}} object it belongs to.</li>
</ul>