en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Clarification of the example in the article

Open Alexandre887 opened this issue 2 years ago • 3 comments

Numbers

Alexandre887 avatar Aug 13 '23 20:08 Alexandre887

incorrect revision. the numbers are in reference to the exponent, not the coefficient.

(vote to close)

perhaps could clarify for beginners:

// the exponent -3 divides by 1 with 3 zeroes, here with coefficient 1
1e-3 === 1 / 1000; // 0.001

// the exponent -6 divides by 1 with 6 zeroes, here with coefficient 1.23
1.23e-6 === 1.23 / 1000000; // 0.00000123

shallow-beach avatar Aug 27 '24 06:08 shallow-beach

Matbe concise // exponent -3 means dividing by 1 with 3 zeroes

joaquinelio avatar Sep 08 '24 15:09 joaquinelio

@shallow-beach, @joaquinelio, thanks for your comments, I've made some changes (hope now it will be clearer for beginners). Please take a look and approve if everything's alright.

Alexandre887 avatar Sep 09 '24 19:09 Alexandre887