ocaml-zarith

OCaml library for arbitrary-precision arithmetic operations

brewmacoslinux
Try with needOr install directly
Source

About

OCaml library for arbitrary-precision arithmetic

Commands

ocaml-zarith

Examples

Use zarith in OCaml REPL for large integer arithmetic$ ocaml #require "zarith";; let x = Z.of_int 12345678901234567890;; Z.to_string x;;
Compile OCaml program using zarith library$ ocamlfind ocamlopt -package zarith -linkpkg -o myapp myapp.ml
Check installed zarith version and location$ ocamlfind query -format '%d' zarith