ELSEIF
Your brief EB
390 stories from 115 feeds 454 clusters Refreshed 9 minutes ago next pull 17:07

TECH Signal 537 2 feeds carried it

Double-double arithmetic provides 31 digits of precision at roughly 9x the cost of a standard double

Double-double arithmetic pairs two standard doubles to achieve roughly 31 decimal digits of precision without heap allocation or external dependencies.

WHY IT MATTERS

It bridges the performance gap between standard 15-digit doubles and arbitrary-precision libraries like MPFR, costing about 9x a plain double compared to MPFR's 81x. This makes it suitable for applications like deep Mandelbrot zooms where double precision fails but arbitrary-precision libraries are too slow or encumbered by LGPL licensing.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

Double-double represents a number as the unevaluated sum of two doubles, maintaining an invariant where the high part equals the rounded sum of both components.

02

In a real kernel, double-double operations cost roughly 9x a plain double, placing performance halfway between standard doubles and MPFR.

03

The technique avoids the heap allocations, per-operation loops, and native binary dependencies required by arbitrary-precision libraries.

THE CLUSTER

Same story, 2 feeds.

ORDERED BY FIRST SEEN
marekfiser.com via Hacker News Double-double: 31 digits of precision without leaving the FPU Open ↗
marekfiser.com via Lobsters Double-double: 31 digits of precision without leaving the FPU Open ↗