- Sources: primary, discussion
- Summary: The post documents the double-to-string algorithm embedded in yyjson, which sits in the Schubfach family but needs one multiplication by a precomputed power of ten where classic Schubfach needs two or three, because the half-ulp band falls out as an integer shift of the same table entry. It walks a boundary case where a threshold bias that reads as an off-by-one is correcting for table truncation.
- Why it matters: Float formatting sits in the hot path of every JSON serializer, and the algorithm is unnamed and undocumented outside this library.
send feedback on this story