# BigInteger.class.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2007 by Anton E. Lebedevich                             *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU Lesser General Public License as        *
    00007  *   published by the Free Software Foundation; either version 3 of the    *
    00008  *   License, or (at your option) any later version.                       *
    00009  *                                                                         *
    00010  ***************************************************************************/
    00011
    00015     interface BigInteger extends Stringable
    00016     {
    00020         public static function getFactory();
    00021
    00025         public function add(BigInteger $x);
    00026
    00027         public function compareTo(BigInteger $x);
    00028
    00032         public function mod(BigInteger $mod);
    00033
    00037         public function pow(BigInteger $exp);
    00038
    00042         public function modPow(BigInteger $exp, BigInteger $mod);
    00043
    00047         public function subtract(BigInteger $x);
    00048
    00052         public function mul(BigInteger $x);
    00053
    00057         public function div(BigInteger $x);
    00058
    00062         public function toBinary();
    00063
    00064         public function intValue();
    00065         public function floatValue();
    00066     }
    00067 ?>