Skip to content

Conversation

@gibson042
Copy link
Member

ECMA-402 ComputeExponent has some text like "the base 10 logarithm of x rounded down to the nearest integer" which really should be "floor(log10(x))" and would be awkward to split across steps because keep-trailing-zeros will be making such declarations conditional.

But it would also be awkward to define log10 in ECMA-402, so I'm instead proposing it here, along with ln and log2.

gibson042 added a commit to gibson042/ecma402 that referenced this pull request Jan 20, 2026
@github-actions
Copy link

The rendered spec for this PR is available at https://tc39.es/ecma262/pr/3743.

Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

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

This is great!

@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jan 21, 2026
@ljharb ljharb force-pushed the 2026-01-mathematical-log-functions branch from 7ad9c5c to 70afb66 Compare January 22, 2026 05:51
@ljharb ljharb merged commit 70afb66 into tc39:main Jan 22, 2026
9 checks passed
gibson042 added a commit to gibson042/ecma402 that referenced this pull request Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants