From cb1370c59ae5849cac56d57acdeaecdfadda2a01 Mon Sep 17 00:00:00 2001 From: Aleksandras Date: Sun, 13 Aug 2023 22:57:48 +0300 Subject: [PATCH 1/2] Incorrect description of mathematical expressions --- 1-js/05-data-types/02-number/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/02-number/article.md b/1-js/05-data-types/02-number/article.md index c704bd980f..4652a4998a 100644 --- a/1-js/05-data-types/02-number/article.md +++ b/1-js/05-data-types/02-number/article.md @@ -58,10 +58,10 @@ If we count the zeroes in `0.000001`, there are 6 of them. So naturally it's `1e In other words, a negative number after `"e"` means a division by 1 with the given number of zeroes: ```js -// -3 divides by 1 with 3 zeroes +// 1 divides by 1 with 3 zeroes 1e-3 === 1 / 1000; // 0.001 -// -6 divides by 1 with 6 zeroes +// 1.23 divides by 1 with 6 zeroes 1.23e-6 === 1.23 / 1000000; // 0.00000123 // an example with a bigger number From 6cd5fd5888d3c603a86a1278cc7cf3b3c73f491f Mon Sep 17 00:00:00 2001 From: Aleksandras Date: Mon, 9 Sep 2024 22:46:17 +0300 Subject: [PATCH 2/2] clarification --- 1-js/05-data-types/02-number/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/02-number/article.md b/1-js/05-data-types/02-number/article.md index 4652a4998a..e9f59940d1 100644 --- a/1-js/05-data-types/02-number/article.md +++ b/1-js/05-data-types/02-number/article.md @@ -58,10 +58,10 @@ If we count the zeroes in `0.000001`, there are 6 of them. So naturally it's `1e In other words, a negative number after `"e"` means a division by 1 with the given number of zeroes: ```js -// 1 divides by 1 with 3 zeroes +// -3 means dividing by 1 with 3 zeroes 1e-3 === 1 / 1000; // 0.001 -// 1.23 divides by 1 with 6 zeroes +// -6 means dividing by 1 with 6 zeroes 1.23e-6 === 1.23 / 1000000; // 0.00000123 // an example with a bigger number