AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Grisu
Grisu32010
An algorithm that converts floating-point numbers to short decimal representations quickly using only precomputed approximations of powers of ten and extended-precision arithmetic on 64-bit integers. Grisu3 detects the roughly 0.5% of inputs for which shortness cannot be guaranteed and hands them to a slower method.
Origin
Lineage
Parent algorithms
Author statementLoitsch's paper presents Grisu, which prints quickly using only fixed-width integers instead of the big-integer arithmetic of Steele and White's method — doi:10.1145/1806596.1806623
Derived algorithms
CitationThe Ryū paper compares against Grisu3 and presents a faster method that guarantees the shortest output for every input — doi:10.1145/3192366.3192369
Notable implementations
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…