Formatting Floating-Point Numbers

By Victor Zverovich

In this talk you will learn more than you ever wanted to know about floating-point formatting, from basics to recent developments in the area. You will find out why printf drags in a multiprecision arithmetic library, what the C++17 std::to_chars all about, why it is so difficult to implement, and how to do it efficiently. You will also learn how the popular {fmt} library and the forthcoming C++20 std::format do floating-point formatting, and how it can benefit your code.

By the end of the talk you will be able to convert binary floating-point to decimal in your mind or you will get your money back!

Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED

By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED

Settings can be changed at any time from the Cookie Policy page.