Flusspferd API and module docs

namespace gmp

Description

GNU Multiple Precision Arithmetic Library.

There are three different classes of large numbers in this module: the classic gmp.Integer and gmp.Float, and a gmp.Rational class which represents fractional numbers as a pair of integers: numerator and denominator.

Example
const GMP = require("gmp");
f = GMP.Float(2);
require("io").stdout.print(f.sqrt());
i = GMP.Integer("0x32432432ad45f7897e79c");
r = GMP.Rational("1/3");
i_plus_f = i.add(f);