.1 < ﺩﺪﻋ ﻦﯾﺮﺘﮑﭼﻮﮐ ﻭ 1 ﻦﯿﺑ ﺕﻭﺎﻔﺗ
ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﻦﮑﻤﻣ ﺩﺍﺪﻌﺗ ﻦﯾﺮﺘﺸﯿﺑ
ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﻦﮑﻤﻣ ﺩﺪﻋ ﻦﯾﺮﺘﮑﭼﻮﮐ
(sup>53 - 1>2) ﻦﻣﺍ ﺢﯿﺤﺻ ﺩﺪﻋ ﺮﺜﮐﺍﺪﺣ
(sup>53 - 1>2)- ﻦﻣﺍ ﺢﯿﺤﺻ ﺩﺪﻋ ﻞﻗﺍﺪﺣ
(ﺰﯾﺭﺮﺳ ﺭﺩ ﺖﺸﮔﺮﺑ) ﺖﯾﺎﻬﻧ ﯽﺑ
(ﺰﯾﺭﺮﺳ ﺭﺩ ﺖﺸﮔﺯﺎﺑ) ﯽﻔﻨﻣ ﺖﯾﺎﻬﻧ ﯽﺑ
."Not-a-Number" ﺭﺍﺪﻘﻣ ﮏﯾ
Number.EPSILON
ﻦﯿﺑ ﺕﻭﺎﻔﺗ
let x = Number.EPSILON;
Number.EPSILON
ﯽﮔﮋﯾﻭ ﮏﯾ ES6 ﺖﺳﺍ.
.ﺪﻨﮐ ﯽﻤﻧ ﺭﺎﮐ ﺭﺭﻮﻠﭙﺴﮐﺍ ﺖﻧﺮﺘﻨﯾﺍ ﺭﺩ
Number.MAX_VALUE
ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﺍﺭ ﻦﮑﻤﻣ ﺩﺪﻋ ﻦﯾﺮﺘﮔﺭﺰﺑ ﻪﮐ ﺖﺳﺍ ﯽﺘﺑﺎﺛ.
let x = Number.MAX_VALUE;
.ﺖﺳﺍ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻩﺭﺎﻤﺷ ءﯽﺷ ﻪﺑ ﻖﻠﻌﺘﻣ ﻩﺭﺎﻤﺷ ﯼﺎﻫﯽﮔﮋﯾﻭ
.ﺪﻨﺘﺴﻫ ﯽﺳﺮﺘﺳﺩ ﻞﺑﺎﻗ Number.MAX_VALUE
ﻥﺍﻮﻨﻋﻪﺑ ﻂﻘﻓ ﺎﻫﯽﮔﮋﯾﻭ ﻦﯾﺍ
،ﺖﺳﺍ ﺭﺍﺪﻘﻣ ﮏﯾ ﺎﯾ ﺮﯿﻐﺘﻣ ﮏﯾ x ﻥﺁ ﺭﺩ ﻪﮐ ،x.MAX_VALUE ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺎﺑ
let x = 6;
x.MAX_VALUE
Number.MIN_VALUE
ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﺍﺭ ﻦﮑﻤﻣ ﺩﺪﻋ ﻦﯾﺮﺘﻤﮐ ﻪﮐ ﺖﺳﺍ ﯽﺘﺑﺎﺛ.
let x = Number.MIN_VALUE;
Number.MAX_SAFE_INTEGER
ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﺍﺭ ﻦﻤﯾﺍ ﺢﯿﺤﺻ ﺩﺪﻋ ﺮﺜﮐﺍﺪﺣ.
Number.MAX_SAFE_INTEGER
ﺖﺳﺍ (253 - 1).
let x = Number.MAX_SAFE_INTEGER;
Number.MIN_SAFE_INTEGER
ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ ﺍﺭ ﻦﻤﯾﺍ ﺢﯿﺤﺻ ﺩﺪﻋ ﻞﻗﺍﺪﺣ.
Number.MIN_SAFE_INTEGER
-(253 - 1) ﺖﺳﺍ.
let x = Number.MIN_SAFE_INTEGER;
MAX_SAFE_INTEGER
ﻭ
.ﺪﻨﻨﮐ ﯽﻤﻧ ﺭﺎﮐ ﺭﺭﻮﻠﭙﺴﮐﺍ ﺖﻧﺮﺘﻨﯾﺍ ﺭﺩ ﺎﻬﻧﺁ
let x = Number.POSITIVE_INFINITY;
POSITIVE_INFINITY
ﺩﻮﺷ ﯽﻣ ﻩﺪﻧﺍﺩﺮﮔﺮﺑ ﺰﯾﺭﺮﺳ ﺕﺭﻮﺻ ﺭﺩ:
let x = 1 / 0;
let x = Number.NEGATIVE_INFINITY;
NEGATIVE_INFINITY
ﺩﻮﺷ ﯽﻣ ﻩﺪﻧﺍﺩﺮﮔﺮﺑ ﺰﯾﺭﺮﺳ ﺭﺩ:
let x = -1 / 0;
NaN
ﺖﺴﯿﻧ ﯽﻧﻮﻧﺎﻗ ﻩﺭﺎﻤﺷ ﮏﯾ ﻪﮐ ﺖﺳﺍ ﯼﺩﺪﻋ ﯼﺍﺮﺑ ﻩﺪﺷ ﻭﺭﺯﺭ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻪﻤﻠﮐ ﮏﯾ.
let x = Number.NaN;
ﮏﯾ ﻪﻧ) ﺩﻮﺷ ﯽﻣ NaN
ﻪﺑ ﺮﺠﻨﻣ ﯼﺩﺪﻋ ﺮﯿﻏ ﻪﺘﺷﺭ ﮏﯾ ﺎﺑ ﺕﺎﺒﺳﺎﺤﻣ ﻡﺎﺠﻧﺍ ﯼﺍﺮﺑ ﺵﻼﺗ
let x = 100 / "Apple";
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Numbers</h2>
<p>A number divided by a non-numeric string becomes NaN (Not a Number):</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = 100 / "Apple";
</script>
</body>
</html>
:ﺪﯿﻨﮐ ﻪﻌﺟﺍﺮﻣ ﺎﻣ ﻪﺑ ،ﻩﺭﺎﻤﺷ ﻞﻣﺎﮐ ﻊﺟﺮﻣ ﮏﯾ ﯼﺍﺮﺑ
.ﻞﻣﺎﮐ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻩﺭﺎﻤﺷ ﻊﺟﺮﻣ
.ﺖﺳﺍ Number ﯼﺎﻫ ﺵﻭﺭ ﻭ ﺎﻫ ﯽﮔﮋﯾﻭ ﻡﺎﻤﺗ ﺯﺍ ﯽﯾﺎﻫ ﻪﻧﻮﻤﻧ ﻭ ﺕﺎﺤﯿﺿﻮﺗ ﯼﻭﺎﺣ ﻊﺟﺮﻣ