open-standards/jouleclaw/jouleclaw-rs/crates/jouleclaw-jcs/testdata
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 92f5ac4dc1 jouleclaw-jcs: numbers as ECMAScript writes them, as RFC 8785 requires
The writer laid numbers out as ryu does, which is not ECMA-262's
Number::toString: 0.000001 came out as 1e-6, 1e16 as 1e16, 1.5e-5 as
1.5e-5, and integers past 2^53 verbatim, so a JCS text from this crate
could not be reproduced by any other RFC 8785 implementation. Every number
is now the double it reads as, written with the fewest digits that read
back (the nearest of those, a tie going to the even: RFC 8785's
1424953923781206.25 is ...6.2), in plain decimals from 1e-6 up to 1e21 and
in exponent form outside. An integer past +-(2^53 - 1), which a double
cannot hold, is UnrepresentableNumber. Checked against RFC 8785's appendix
B and 3,385 vectors written by a JavaScript engine. ryu is no longer a
dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 02:37:16 -04:00
..
es-number-tostring.txt jouleclaw-jcs: numbers as ECMAScript writes them, as RFC 8785 requires 2026-10-18 02:37:16 -04:00