Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Formatting Floating-Point Numbers

ACCU Conference via YouTube

Overview

Explore the intricacies of floating-point number formatting in this 55-minute ACCU 2019 conference talk by Victor Zverovich. Delve into the fundamentals and recent advancements in the field, uncovering why printf requires a multiprecision arithmetic library and the significance of C++17's std::to_chars. Gain insights into efficient implementation techniques and discover how the {fmt} library and upcoming C++20 std::format handle floating-point formatting. Learn about binary to decimal conversion for floating-point numbers and understand how these concepts can enhance your code. The talk covers various aspects including history, properties, bit layout, algorithms, and performance benchmarks, providing a comprehensive overview of floating-point formatting in C++.

Syllabus

Introduction
About me
What made me interested
The abstract
History
Fortran
References
Stackoverflow
Whats broken
Properties
No information loss
How much digits
Generate shortest output
Correct rounding
Bit layout
Example
Neighbors
Simple observation
Finding the largest case
Plot predecessor successor
Printf
Hack digits
Dragon
Grizzle
Ryu
Charcoal
State Format
Empty
Lowcalorie independence
Fancy beauty print
Some characters
Alignment
Width
Presentation
Benchmark
Questions

Taught by

ACCU Conference

Reviews

Start your review of Formatting Floating-Point Numbers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.