1.1.3mathΣ=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Dragonbox is a float-to-string conversion algorithm: it finds the
shortest decimal representation of a binary floating-point number which
still rounds back to the same number. It is based on Schubfach, by
Raffaello Giulietti, and also inspired by Grisu and Grisu-Exact.
This port installs the header-only dragonbox library, along with
dragonbox_to_chars, a shared library converting float and double values
into strings, and CMake package files for find_package(dragonbox).
math/dragonbox: [NEW PORT] Floating-point binary-to-decimal conversion library
Dragonbox is a float-to-string conversion algorithm, producing the
shortest decimal representation of a binary floating-point number
which still rounds back to it. A number of ports bundle a copy of
it in their sources; this port lets them use a single shared one.
The upstream build only makes a static dragonbox_to_chars; patch
it to honor BUILD_SHARED_LIBS and to give the library a SOVERSION
-- idea from NetBSD/pkgsrc.
WWW: https://github.com/jk-jeon/dragonbox
Co-Authored-By: Claude Opus 5.5 (effort medium)
PR: 300885