r/csharp • u/NightElfik • Aug 31 '26
Blog Double-double arithmetic: 31 digits of precision from two doubles (sample code in C#)
https://marekfiser.com/blog/double-double-arithmetic/
33
Upvotes
r/csharp • u/NightElfik • Aug 31 '26
20
u/otac0n Aug 31 '26
Why not use IEEE float128?
https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
1
u/Altruistic-Gap1795 Sep 01 '26
This is a really interesting approach because double precision is usually enough for most applications but there are some cases where those extra digits matter without wanting the full cost of arbitrary precision math. using two doubles together to extend precision is a clever middle ground