Formatting Floating-Point Numbers
Offered By: ACCU Conference via YouTube
Course Description
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
Related Courses
Computer GraphicsUniversity of California, San Diego via edX Intro to Parallel Programming
Nvidia via Udacity Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera