double-conversion
brew install double-conversion
v3.4.0
BSD-3-Clause
C++ shared library for fast binary-decimal and decimal-binary conversion of IEEE 754 doubles.
Why you might care
Extracted and optimized from V8's JavaScript engine, this library provides highly efficient routines for converting between floating-point and string representations—critical for performance-sensitive applications like JSON parsers, numeric formatting, and language runtimes. Use it when standard library conversions aren't fast enough or when you need predictable, well-tested behavior across platforms.
11.6k
30-day installs · #328
36.0k
90-day · #340
152.3k
365-day · #331
1.2k
★ GitHub stars · updated 17d ago
Build dependencies
Links
- https://github.com/google/double-conversion
- GitHub: google/double-conversion
- Brew formula source: Formula/d/double-conversion.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"dtoa",
"strtod",
"fmt",
"abseil"
],
"build_dependencies": [
"cmake"
],
"categories": [
"library",
"header-only-library"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Binary-decimal and decimal-binary routines for IEEE doubles",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:37:05+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "double-conversion",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-03T21:50:44Z",
"github_readme_excerpt": "Double Conversion\n========\nhttps://github.com/google/double-conversion\n\n[](https://securityscorecards.dev/viewer/?uri=github.com/google/double-conversion)\n\nThis project (double-conversion) provides binary-decimal and decimal-binary\nroutines for IEEE doubles.\n\nThe library consists of efficient conversion routines that have been extracted\nfrom the V8 JavaScript engine. The code has been refactored and improved so that\nit can be used more easily in other projects.\n\nThere is extensive documentation in `double-conversion/string-to-double.h` and\n`double-conversion/double-to-string.h`. Other examples can be found in\n`test/cctest/test-conversions.cc`.\n\n\nBuilding\n========\n\nThis library can be built with [scons][0], [cmake][1] or [bazel][2].\nThe checked-in Makefile simply forwards to scons, and provides a\nshortcut to run all tests:\n\n make\n make test\n\nScons\n-----\n\nThe easiest way to install this library is to use `scons`. It builds\nthe static and shared library, and is set up to install those at the\ncorrect locations:\n\n scons install\n\nUse the `DESTDIR` option to change the target directory:\n\n scons DESTDIR=alternative_directory install\n\nCmake\n-----\n\nTo use cmake run `cmake .` in the root directory. This overwrites the\nexisting Makefile.\n\nUse `-DBUILD_SHARED_LIBS=ON` to enable the compilation of shared libraries.\nNote that this disables static libraries. There is currently no way to\nbuild both libraries at the same time with cmake.\n\nUse `-DBUILD_TESTING=ON` to build the test executable.\n\n cmake . -DBUILD_TESTING=ON\n make\n test/cctest/cctest\n\nBazel\n---\n\nThe simplest way to adopt this library is through the [Bazel Central Registry](https://registry.bazel.build/modules/double-conversion).\n\nTo build the library from the latest repository, run:\n\n```\nbazel build //:double-conversion\n```\n\nTo run the unit test, run:\n\n```\nbazel test //:cctest\n```\n\n[0]: http://w",
"github_repo": "google/double-conversion",
"github_stars": 1189,
"github_topics": [],
"homepage": "https://github.com/google/double-conversion",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 11569,
"installs_365d": 152293,
"installs_90d": 36032,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSD-3-Clause",
"llm_generated_at": "2026-06-20T23:44:11+00:00",
"llm_model": "claude-haiku-4-5",
"name": "double-conversion",
"oldnames": [],
"one_liner": "C++ shared library for fast binary-decimal and decimal-binary conversion of IEEE 754 doubles.",
"optional_dependencies": [],
"rank_30d": 328,
"rank_365d": 331,
"rank_90d": 340,
"raw_hash": "677d7141454da342",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/d/double-conversion.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "3.4.0",
"versioned_formulae": [],
"why_use_this": "Extracted and optimized from V8\u0027s JavaScript engine, this library provides highly efficient routines for converting between floating-point and string representations\u2014critical for performance-sensitive applications like JSON parsers, numeric formatting, and language runtimes. Use it when standard library conversions aren\u0027t fast enough or when you need predictable, well-tested behavior across platforms."
}