Skip to content

Return finite precision when the maximum equals the step - #162

Closed
Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/precision-round-equal-step
Closed

Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/precision-round-equal-step

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Summary

precisionRound(0.1, 0.1) returns NaN, producing an unusable format specifier. Use the step’s exponent when subtracting the step leaves an adjusted maximum of zero.

Evidence

The regression fails against the unchanged base and passes with this fix. Full test suite and lint pass, along with the build.

Merge Danger

Door: Two-way. Blast Radius: Formatting.

@Narek-Khachikyan Narek-Khachikyan closed this by deleting the head repository Nov 9, 2026
@Fil

Fil commented Nov 9, 2026

Copy link
Copy Markdown
Member

related to #147

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants