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

  • Java's BigInteger classes. See /j2se/src/share/classes/java/math in jdk-1_5_0-src-jrl.zip

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

2006 Jim Wigginton

license

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

Interfaces, Classes and Traits

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

Search results