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
Khronos Sycl Language Framework for C++ Accelerators - Take Advantage of All the MIPSACCU Conference via YouTube Space Invaders - The C++20 Spaceship Operator is Upon Us
ACCU Conference via YouTube Grinding, Farming, and Alliances - Become a Better Programmer by Using Words and Ideas From Casual Gaming
ACCU Conference via YouTube Designing for C++ Concurrency Using Message Passing
ACCU Conference via YouTube Productivity in C++ Game Development - Inside the Mind of an AAA Game Developer
ACCU Conference via YouTube