From 8b805b9e168bb9afdf53ee3ff00cfb1e70b40106 Mon Sep 17 00:00:00 2001
From: Alexey Chilipenko <5251053+chilipenko@users.noreply.github.com>
Date: Sat, 2 Jul 2022 13:47:57 +0300
Subject: [PATCH] several fixes in Number chapter
---
1-js/05-data-types/02-number/article.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/1-js/05-data-types/02-number/article.md b/1-js/05-data-types/02-number/article.md
index 53a4bff6..969c22ce 100644
--- a/1-js/05-data-types/02-number/article.md
+++ b/1-js/05-data-types/02-number/article.md
@@ -2,9 +2,9 @@
In modern JavaScript, there are two types of numbers:
-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.
+1. Regular numbers in JavaScript are stored in 64-bit format [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754), 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.
-2. BigInt numbers represent integers of arbitrary length. They are sometimes needed because a regular number can't safely exceed 253
or be less than -253
. As bigints are used in few special areas, we devote them a special chapter .
+2. BigInt numbers represent integers of arbitrary length. They are sometimes needed because a regular integer number can't safely exceed (253-1)
or be less than -(253-1)
, as we mentioned earlier in the chapter . As bigints are used in few special areas, we devote them a special chapter .
So here we'll talk about regular numbers. Let's expand our knowledge of them.
@@ -192,7 +192,7 @@ There are two ways to do so:
## Imprecise calculations
-Internally, a number is represented in 64-bit format [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754-2008_revision), so there are exactly 64 bits to store a number: 52 of them are used to store the digits, 11 of them store the position of the decimal point (they are zero for integer numbers), and 1 bit is for the sign.
+Internally, a number is represented in 64-bit format [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754-2008_revision), so there are exactly 64 bits to store a number: 52 of them are used to store the digits, 11 of them store the position of the decimal point, and 1 bit is for the sign.
If a number is really huge, it may overflow the 64-bit storage and become a special numeric value `Infinity`: