BSD Ports

math/ocaml-num 1.4p4 OpenBSD

library for arithmetic on big integers and rationals

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Christopher Zimmermann <[email protected]>
Categories
math

Description

Arbitrary-precision arithmetic on big integers and on rationals.

This is a legacy library. It used to be part of the core OCaml distribution (in otherlibs/num) but is now distributed separately. New applications that need arbitrary-precision arithmetic should use the Zarith library (https://github.com/ocaml/Zarith) instead of the Num library, and older applications that already use Num are encouraged to switch to Zarith. Zarith delivers much better performance than Num and has a nicer API.

In the other systems

SystemPortVersion
OpenBSDmath/ocaml-num1.4p4
FreeBSDmath/ocaml-num1.4_3
NetBSDmath/ocaml-num1.4nb3
DragonFlymath/ocaml-num1.4_3
GhostBSDmath/ocaml-num1.4_3

Install

Binary package:

pkg_add ocaml-num

From the ports tree:

cd /usr/ports/math/ocaml-num && make install

Dependencies

Build dependencies 3
Run dependencies 1
Required by 1