~/talk

Fast Conversion From Cpp Floating Point Numbers

Talkat C++Now 2024 · 2024-04-29..05-03· [compilers-and-language-design]
links:none on file
slides:none on file

Presents a new algorithm called TJaguar that converts binary floats to the shortest round‑trip decimal faster than previous dragons (Grisu, Ryu, Dragonbox, Errol) by picking the largest decimal exponent f that fits a permissible interval. Uses a precomputed power table (K-bit entries), integer mantissa shifting, and divisibility checks via the Mersenne modular inverse; a code generator produces tables and a computer‑assisted proof covers doubles. Benchmarks report TJaguar wins for 99.95% of centered doubles and beats Dragonbox on integer cases 100% of the time while preserving round‑trip correctness.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35The problem
  3. 4:48Scientific notation
  4. 7:46Decimal floating point
  5. 14:04Binary floating point
  6. 18:24Decoding binary numbers
  7. 23:43Printing floating points
  8. 27:23Rounding and ambiguity
  9. 31:28The dragon algorithm
  10. 34:07Algorithms history
  11. 36:52Ryu and DragonBox
  12. 39:11The dragon's problem
  13. 1:00:04Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.