Don't write numbers in exponential notation when saving a pdf - #21683
Merged
Conversation
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 1, 2026 16:27 — with
GitHub Actions
Inactive
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21683 +/- ##
==========================================
- Coverage 90.00% 89.97% -0.04%
==========================================
Files 263 263
Lines 66861 66968 +107
==========================================
+ Hits 60178 60252 +74
- Misses 6683 6716 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
`toFixed(10)` switches to the exponential notation from 1e21 on, which isn't valid PDF syntax, and removing the trailing zeros then dropped a digit of the exponent: 1e30 was written "1e+3" and 1e100 "1e+1". Such a number, necessarily an integer, is now written with all its digits. The trailing zeros are removed with a backward scan, since `toFixed(10)` always produces exactly 10 decimals. Below the 1e21 limit its output is at most 33 characters long, so the previous `$`-anchored regex wasn't a performance issue.
calixteman
force-pushed
the
fix/quad-regex-writer
branch
from
August 3, 2026 15:01
b8506c4 to
5375bff
Compare
calixteman
had a problem deploying
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Failure
calixteman
had a problem deploying
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Failure
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
calixteman
temporarily deployed
to
code-coverage
August 3, 2026 15:01 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
toFixed(10)switches to the exponential notation from 1e21 on, which isn't valid PDF syntax, and removing the trailing zeros then dropped a digit of the exponent: 1e30 was written "1e+3" and 1e100 "1e+1". Such a number, necessarily an integer, is now written with all its digits.The trailing zeros are removed with a backward scan, since
toFixed(10)always produces exactly 10 decimals. Below the 1e21 limit its output is at most 33 characters long, so the previous$-anchored regex wasn't a performance issue.