BCMath is a binary calculator for arbitrary precision mathematics. It supports numbers of any size and precision, represented as strings.
For more information on BCMath, check us2.php.net/bc.