ocaml-zarith
« Back to VersTracker
Description:
OCaml library for arbitrary-precision arithmetic
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: ocaml arithmetic gmp mathematics library
Install: brew install ocaml-zarith
About:
Zarith is an OCaml library that provides arbitrary-precision integers and rational numbers. It leverages the GMP library for high-performance arithmetic operations, making it ideal for cryptographic and scientific applications. The library integrates seamlessly with OCaml's native integer types for a smooth developer experience.
Key Features:
  • High-performance arithmetic via GMP
  • Seamless OCaml integer integration
  • Support for both integers and rationals
  • Camlint-compatible interface
Use Cases:
  • Cryptographic algorithm implementation
  • Scientific and financial computations
  • Number theory research
Alternatives:
  • num – Legacy library; Zarith is generally faster and more modern
Version History
Detected Version Rev Change Commit
Sep 11, 2025 12:39am 2 VERSION_BUMP e7acd2fb