~/talk

Formatting floating-point numbers

Talkat ACCU Autumn 2019 Belfast · 2019-11-11..11-12· [c-and-cpp]
slides:none on file

Converts binary IEEE‑754 to decimal with implementations (Ryu, Dragon, Grisu) and libraries ({fmt}, double‑conversion) and targets C++17 std::to_chars and C++20 std::format. Demonstrated ~10× speedup (about 14× vs iostreams in benchmarks) with similar speed to double‑conversion, produces round‑trip shortest representation by default, is locale‑independent unless opted in, supports zero‑allocation buffering (memory_buffer) and exposes tradeoffs: to_chars needs explicit buffer management and high‑precision tables for worst‑case cases.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37About me
  3. 1:05What made me interested
  4. 2:05The abstract
  5. 2:37History
  6. 4:03Fortran
  7. 5:25References
  8. 6:45Stackoverflow
  9. 7:39Whats broken
  10. 8:32Properties
  11. 10:04No information loss
  12. 11:19How much digits
  13. 11:51Generate shortest output
  14. 12:43Correct rounding
  15. 13:31Bit layout
  16. 14:48Example
  17. 16:59Neighbors
  18. 17:27Simple observation
  19. 17:50Finding the largest case
  20. 21:29Plot predecessor successor
  21. 24:03Printf
  22. 25:13Hack digits
  23. 25:23Dragon
  24. 26:53Grizzle
  25. 27:26Ryu
  26. 28:09Charcoal
  27. 30:14State Format
  28. 31:09Empty
  29. 32:59Lowcalorie independence
  30. 35:19Fancy beauty print
  31. 36:09Some characters
  32. 36:33Alignment
  33. 36:54Width
  34. 37:10Presentation
  35. 42:39Benchmark
  36. 50:51Questions
~/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.