calixteman
5375bff642
Don't write numbers in exponential notation when saving a pdf
...
`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.
2026-08-03 16:59:12 +02:00
..
2026-07-30 16:04:58 +02:00
2026-07-25 23:52:28 +02:00
2026-07-31 11:29:21 +02:00
2026-07-25 08:43:01 +02:00
2026-06-06 11:57:22 +02:00
2026-03-30 14:34:53 +02:00
2026-07-25 22:34:59 +02:00
2026-07-28 19:51:34 +02:00
2026-07-25 23:52:28 +02:00
2026-04-29 11:02:51 +02:00
2026-07-28 19:51:34 +02:00
2026-07-25 23:52:28 +02:00
2026-07-26 17:02:22 +02:00
2026-07-25 23:52:28 +02:00
2026-08-01 15:11:43 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-05-31 11:36:32 +02:00
2026-08-01 21:17:43 +02:00
2026-07-28 21:34:49 +02:00
2026-06-03 10:13:41 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-05-25 14:44:48 +02:00
2026-07-04 21:37:12 +09:00
2026-02-20 22:43:42 +01:00
2026-07-28 19:51:34 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 12:58:43 +02:00
2026-07-25 14:30:55 +02:00
2026-07-25 14:30:55 +02:00
2026-07-25 23:52:28 +02:00
2026-08-01 20:56:01 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-04-21 11:48:18 +02:00
2026-07-25 23:52:28 +02:00
2026-07-26 17:02:22 +02:00
2026-05-01 19:31:13 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-04-20 20:53:24 +02:00
2026-07-15 15:24:25 +02:00
2026-07-25 23:52:28 +02:00
2026-02-01 17:56:06 +01:00
2026-04-22 23:24:26 +02:00
2025-04-13 16:48:19 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 23:52:28 +02:00
2026-05-16 17:17:41 +02:00
2026-06-29 12:30:48 +02:00
2026-05-28 22:11:13 +02:00
2026-07-25 23:52:28 +02:00
2026-04-30 12:35:59 +02:00
2026-07-25 14:30:55 +02:00
2026-07-31 12:24:08 +02:00
2025-12-09 13:12:20 +01:00
2025-09-04 17:17:34 +02:00
2026-07-25 12:58:43 +02:00
2026-07-25 23:52:28 +02:00
2023-04-17 14:31:23 +02:00
2026-03-24 17:08:04 +01:00
2026-07-25 22:34:59 +02:00
2026-08-03 16:59:12 +02:00
2026-07-25 23:52:28 +02:00
2026-07-25 22:34:29 +02:00
2023-06-04 13:44:15 +02:00
2026-07-25 23:52:28 +02:00
2026-08-01 16:24:03 +02:00