You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/02-number/article.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ In modern JavaScript, there are two types of numbers:
4
4
5
5
1. Regular numbers in JavaScript are stored in 64-bit format [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754-2008_revision), also known as "double precision floating point numbers". These are numbers that we're using most of the time, and we'll talk about them in this chapter.
6
6
7
-
2. BigInt numbers, to represent integers of arbitrary length. They are sometimes needed, because a regular number can't exceed <code>2<sup>53</sup></code> or be less than <code>-2<sup>53</sup></code>. As bigints are used in few special areas, we devote them a special chapter <info:bigint>.
7
+
2. BigInt numbers, to represent integers of arbitrary length. They are sometimes needed, because a regular number can't safely exceed <code>2<sup>53</sup></code> or be less than <code>-2<sup>53</sup></code>. As bigints are used in few special areas, we devote them a special chapter <info:bigint>.
8
8
9
9
So here we'll talk about regular numbers. Let's expand our knowledge of them.
10
10
@@ -53,7 +53,7 @@ Just like before, using `"e"` can help. If we'd like to avoid writing the zeroes
53
53
let ms =1e-6; // six zeroes to the left from 1
54
54
```
55
55
56
-
If we count the zeroes in `0.000001`, there are 6 of them. So naturally it's `1e-6`.
56
+
If we count the zeroes in `0.000001`, there are 6 of them. So naturally it's `1e-6`.
57
57
58
58
In other words, a negative number after `"e"` means a division by 1 with the given number of zeroes:
59
59
@@ -329,7 +329,7 @@ let num = +prompt("Enter a number", '');
329
329
alert( isFinite(num) );
330
330
```
331
331
332
-
Please note that an empty or a space-only string is treated as `0` in all numeric functions including `isFinite`.
332
+
Please note that an empty or a space-only string is treated as `0` in all numeric functions including `isFinite`.
0 commit comments