Skip to content

Commit 3d88d33

Browse files
authored
Update article.md
1 parent 617dfc7 commit 3d88d33

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ alert( 7.3e9 ); // 7.3 billions (same as 7300000000 or 7_300_000_000)
3737
In other words, `e` multiplies the number by `1` with the given zeroes count.
3838

3939
```js
40-
1e3 = 1 * 1000 // e3 means *1000
41-
1.23e6 = 1.23 * 1000000 // e6 means *1000000
40+
1e3 === 1 * 1000; // e3 means *1000
41+
1.23e6 === 1.23 * 1000000; // e6 means *1000000
4242
```
4343

4444
Now let's write something very small. Say, 1 microsecond (one millionth of a second):
@@ -59,10 +59,10 @@ In other words, a negative number after `"e"` means a division by 1 with the giv
5959

6060
```js
6161
// -3 divides by 1 with 3 zeroes
62-
1e-3 = 1 / 1000 (=0.001)
62+
1e-3 === 1 / 1000; // 0.001
6363

6464
// -6 divides by 1 with 6 zeroes
65-
1.23e-6 = 1.23 / 1000000 (=0.00000123)
65+
1.23e-6 === 1.23 / 1000000; // 0.00000123
6666
```
6767

6868
### Hex, binary and octal numbers
@@ -118,6 +118,7 @@ Please note that two dots in `123456..toString(36)` is not a typo. If we want to
118118
If we placed a single dot: `123456.toString(36)`, then there would be an error, because JavaScript syntax implies the decimal part after the first dot. And if we place one more dot, then JavaScript knows that the decimal part is empty and now goes the method.
119119
120120
Also could write `(123456).toString(36)`.
121+
121122
```
122123

123124
## Rounding

0 commit comments

Comments
 (0)