Skip to content

Clarify Number precision as significant digits#44562

Open
Juke-99 wants to merge 1 commit into
mdn:mainfrom
Juke-99:fix-number-significant-digits
Open

Clarify Number precision as significant digits#44562
Juke-99 wants to merge 1 commit into
mdn:mainfrom
Juke-99:fix-number-significant-digits

Conversation

@Juke-99

@Juke-99 Juke-99 commented Jun 23, 2026

Copy link
Copy Markdown

Description

Clarify the precision description for JavaScript Number.

This changes "about 15 to 17 decimal places" to wording that describes the precision as approximately 15–17 significant decimal digits.

Motivation

The current wording says "decimal places", but the surrounding explanation is about the precision of the mantissa/significand.

This precision is not a fixed number of digits after the decimal point. It is better described as significant decimal digits. For example, larger integer values can lose unit precision even without any fractional digits.

This change helps avoid the impression that Number always preserves 15–17 digits after the decimal point regardless of the magnitude of the value.

Additional details

A corresponding Japanese translation update is planned for mdn/translated-content.

Related issues and pull requests

Relates to mdn/translated-content#36668

@Juke-99 Juke-99 requested a review from a team as a code owner June 23, 2026 14:29
@Juke-99 Juke-99 requested review from Josh-Cena and removed request for a team June 23, 2026 14:29
@github-actions github-actions Bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants