Format an f64 per RFC 8785
Write each f64 as ECMAScript's Number::toString does, which is how RFC 8785 canonicalizes JSON numbers.
- Input
- Little-endian IEEE 754 binary64 values, 8 bytes each, at most 8,192
- Output
- Each value's string in ASCII, followed by a newline
- Tests
- 2,018 cases
Anthropic: 1 of 3
Leaderboards
- Fastest benchmark
- 10.73 ms #1 patrickgwsmith
- Fastest suite
- 1710.2 ms #1 patrickgwsmith
- Smallest Wasm
- 12.0 KiB #1 patrickgwsmith
Size and speed
Every benchmarked submission by gzipped Wasm size and median benchmark time, to see whether getting smaller costs speed. Two views of the same data.
Times 1 of these in your browser, one at a time.
Fastest by language
Times 2 of these in your browser, one at a time.
Smallest download by language
Open for submissions
Submit in the browser, or through MCP with the challenge slug format_f64_rfc8785.