~/talk

Processing Decimal Values

Talkat ACCU 2021 Online · 2021-03-10..03-13· [c-and-cpp]
links:none on file
slides:none on file

Computers store 0.1 as a non‑decimal binary value so exact decimal round‑trips fail; conversion needs Dragon4/Ryu conversion algorithms or costly big‑integer work to recover original digits. Decimal fixed‑point (integers scaled by 10^n) gives exact addition/multiplication when scale is known; decimal floating‑point (decimal64) gives 16 digits and exact decimal ops but rescaling/division is slow. Bloomberg’s bdldfp (decimal64) library and Intel’s DFP exist; software decimal is ~6× slower than binary for some workloads but remains practical.

AI-written summary · about

  1. 0:00Start
  2. 0:18Processing Decimal Values
  3. 7:47Floating Point Representation
  4. 14:46Represent the Decimal Value
  5. 17:42Encoding of Decimal Values
  6. 20:42Basic Idea of the Algorithms
  7. 26:50Intel Decimal Floating Point Library
  8. 32:18Decimal Rounding
  9. 32:48Using a String
  10. 35:11Decimal Fixed Problem
  11. 37:04Binary Fixed Points
  12. 44:1464-Bit Representation of Decimals
  13. 45:42Replace the Division by Multiplication of Integers
  14. 48:13Decimal Floating Point
  15. 50:18Fast Root
  16. 50:49Restore a Decimal Value Which Was Stored in a Binary Floating Point
  17. 51:59How Many Significant Figures Are Available in Ieee 754 Dfp
  18. 56:57Slowdown
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.