Skip to content

Commit 4d01fc2

Browse files
committed
minor fixes
1 parent a6c0fad commit 4d01fc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1-js/05-data-types/02-number/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In modern JavaScript, there are two types of numbers:
44

55
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.
66

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>.
88

99
So here we'll talk about regular numbers. Let's expand our knowledge of them.
1010

@@ -53,7 +53,7 @@ Just like before, using `"e"` can help. If we'd like to avoid writing the zeroes
5353
let ms = 1e-6; // six zeroes to the left from 1
5454
```
5555

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`.
5757

5858
In other words, a negative number after `"e"` means a division by 1 with the given number of zeroes:
5959

@@ -329,7 +329,7 @@ let num = +prompt("Enter a number", '');
329329
alert( isFinite(num) );
330330
```
331331

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`.
333333

334334
```smart header="Compare with `Object.is`"
335335

figures.sketch

121 KB
Binary file not shown.

0 commit comments

Comments
 (0)