cln
« Back to VersTracker
Description:
Class Library for Numbers
Type: Formula  |  Latest Version: 1.3.7@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: math library c-plus-plus arbitrary-precision numbers
Install: brew install cln
About:
CLN (Class Library for Numbers) is an efficient C++ library for numbers, supporting arbitrary precision integers, rationals, and floats. It provides a comprehensive set of arithmetic operations and functions, making it a robust foundation for mathematical applications. Its design prioritizes speed and memory efficiency, often outperforming other bignum libraries.
Key Features:
  • Arbitrary precision arithmetic
  • C++ interface with operator overloading
  • Efficient memory management and speed
  • Support for complex numbers and transcendental functions
Use Cases:
  • Developing computer algebra systems
  • Scientific and engineering calculations requiring high precision
  • Cryptographic algorithm implementation
Alternatives:
  • GMP (GNU Multiple Precision Arithmetic Library) – CLN is built on top of GMP but provides a more convenient C++ object-oriented interface, whereas GMP is a C library.
  • MPFR – CLN includes floating-point support but is broader in scope; MPFR is specialized for correctly rounded floating-point arithmetic.
License: GPL-2.0-or-later
Dependencies: gmp
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, sonoma, ventura, monterey, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit