r/csharp • u/NightElfik • 3d ago
Blog Double-double arithmetic: 31 digits of precision from two doubles (sample code in C#)
https://marekfiser.com/blog/double-double-arithmetic/
32
Upvotes
1
u/Altruistic-Gap1795 2d ago
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
20
u/otac0n 3d ago
Why not use IEEE float128?
https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format