Documentation

BigInteger.php

Pure-PHP arbitrary precision integer arithmetic library.

Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or BCMath extensions, if available, and an internal implementation, otherwise.

PHP version 5 and 7

Here's an example of how to use this library:

add($b); echo $c->toString(); // outputs 5 ?>
Tags
category

Math

author

Jim Wigginton terrafrost@php.net

copyright

2017 Jim Wigginton

license

http://www.opensource.org/licenses/mit-license.html MIT License

Table of Contents

Classes

BigInteger
Pure-PHP arbitrary precision integer arithmetic library. Supports base-2, base-10, base-16, and base-256 numbers.

        
On this page

Search results