How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024 @CppCon
How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024  @CppCon
Uploaded March 2025 | Updated September 2026, 2 weeks ago
cppcon.org
---

A New Dragon in the Den: Fast Conversion From Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024
---

Standard C++ provides a few functions to convert a double or float value to string, namely, sprintf, stringstream::operator<<, snprintf, to_string, to_chars and format.

This talk concerns what goes on behind the scenes, i.e, the algorithms which these functions might use to do their job. Curiously, many of these algorithms have dragon-related names like Dragon, Grisu, Errol, Ryu and Dragonbox.

Here mythology meets technology and we shall introduce the new dragon that has just arrived in the den.

(Please leave your bows and arrows at home, they won't be necessary here.)
---

The following topics are some of those covered in this presentation:-
algorithms, mathematics, arithmetic, floating point, floating point numbers, floating point math, floating point arithmetic, decimal floating-point representation, binary floating-point representation, IEEE 754, programming languages, c++, cpp
---

Slides: github.com/CppCon/CppCon2024/blob/main/Presentations/A_New_Dragon_in_the_Den.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Cassio Neri

Cassio Neri holds a PHD in Applied Mathematics from University of Paris Dauphine. Cassio has been professionally coding in C++ for more than 15 years but his coding experience has started far earlier when he was a kid. He currently works on the financial industry in London but had previously worked in academia for more than a decade. Cassio authored research articles and has published them on peer-reviewed journals on Mathematics, Finance, Computer Science and C++.
---

CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#algorithm #algorithms #mathematics #arithmetic #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwareengineering #coding #code #programming #programmer
How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024The Evolution of std::optional - From Boost to C++26 - Steve Downey - CppCon 2025Knockin on Headers Door: An Overview of C++ Modules - Alexsandro Thomas - CppCon 2025Lightning Talk: std::move & Spirited Away: When Nameless Objects Walk the Spirited WorldInvestigating C++ Legacy Design Trends: Newer Isn’t Always Better! - Katherine Rocha - CppCon 2024Lightning Talk: CppDefCon3 - WarGames - Kevin Carpenter - CppCon 2024Lazy and Fast: Ranges Meet Parallelism in C++ - Daniel Anderson - CppCon 2025Lightning Talk: Eight Consteval Queens and Compile-Time Printing - Sagnik Bhattacharya - CppCon 2025Cache-Friendly C++ - Jonathan Müller - CppCon 2025Lightning Talk: How Far Should You Indent Your Code? - The Number Of The Counting - Dave SteffenLightning Talk: Crafting CUDA Compatible C++ Code - Jon White - CppCon 2025Back to Basics: Master the static, inline, const, and constexpr C++ Keywords - Andreas Fertig
CppCon |

How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER