dragonbox
« Back to VersTracker
Description:
Reference implementation of Dragonbox in C++
Type: Formula  |  Latest Version: 1.1.3@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ library formatting floating-point header-only
Install: brew install dragonbox
About:
Dragonbox is a C++ library providing a reference implementation for converting binary floating-point numbers to decimal strings. It achieves this with round-trip guarantees and optimal performance, often outperforming existing standard library implementations. The library is header-only and focuses on providing the fastest and most accurate method for number formatting.
Key Features:
  • Header-only C++ library for easy integration
  • Provides shortest decimal representation with round-trip guarantees
  • Optimized for high performance, often faster than standard library implementations
  • IEEE 754 compliant
Use Cases:
  • High-performance logging systems requiring fast number formatting
  • Data serialization and export tools
  • Scientific computing applications needing precise number output
Alternatives:
  • ryu – Ryu is a similar fast floating-point to string algorithm, with Dragonbox often cited as a successor or competitor with specific optimizations.
  • std::to_chars – The C++17 standard library function, which Dragonbox aims to outperform in speed while maintaining correctness.
License: BSL-1.0 OR (Apache-2.0 WITH LLVM-exception)
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Nov 24, 2024 3:04pm 0 VERSION_BUMP 4f5a8790
Nov 24, 2024 9:48am 0 NEW 760f3227