Num is an OCaml library for arbitrary-precision arithmetic. It provides arbitrary-precision integers ("bignums") and rational numbers. Num used to be part of the OCaml standard library, but in OCaml 4.06 it was moved to a separate package.