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-3
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 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>.
7
+
2. BigInt numbersrepresent 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
@@ -308,7 +308,7 @@ They belong to the type `number`, but are not "normal" numbers, so there are spe
308
308
alert( isNaN("str") ); // true
309
309
```
310
310
311
-
But do we need this function? Can't we just use the comparison `=== NaN`? Sorry, but the answer is no. The value `NaN` is unique in that it does not equal anything, including itself:
311
+
But do we need this function? Can't we just use the comparison `=== NaN`? Unfortunately not. The value `NaN` is unique in that it does not equal anything, including itself:
312
312
313
313
```js run
314
314
alert( NaN === NaN ); // false
@@ -402,7 +402,7 @@ A few examples:
402
402
alert( Math.random() ); // ... (any random numbers)
403
403
```
404
404
405
-
`Math.max(a, b, c...)` / `Math.min(a, b, c...)`
405
+
`Math.max(a, b, c...)` and `Math.min(a, b, c...)`
406
406
: Returns the greatest/smallest from the arbitrary number of arguments.
0 commit comments