Skip to content

Update toFixed/toExponential/toPrecision digit range in docs to match the spec#63516

Open
ibondarenko1 wants to merge 1 commit into
microsoft:mainfrom
ibondarenko1:fix/number-digits-range-docs
Open

Update toFixed/toExponential/toPrecision digit range in docs to match the spec#63516
ibondarenko1 wants to merge 1 commit into
microsoft:mainfrom
ibondarenko1:fix/number-digits-range-docs

Conversation

@ibondarenko1
Copy link
Copy Markdown

The doc comments for Number.prototype.toFixed, toExponential and toPrecision still list the old digit limits (0 - 20, and 1 - 21 for toPrecision). TC39 raised the maximum to 100 in tc39/ecma262#857, which shipped in ES2018, and engines follow that. Updated the three comments to 0 - 100 and 1 - 100.

Fixes #59653

Copilot AI review requested due to automatic review settings May 29, 2026 16:43
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog May 29, 2026
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label May 29, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@ibondarenko1 ibondarenko1 requested a review from Copilot May 29, 2026 21:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

Number.prototype.toFixed, Number.prototype.toExponential,Number.prototype.toPrecision comments error

3 participants