peaklau.eaglefund
Class BigInteger

java.lang.Object
  extended by peaklau.eaglefund.BigInteger

public class BigInteger
extends java.lang.Object

BigInteger class.
This class implements the big integer operation, eg: add, mul, div

Version:
$Revision: 1.2 $ $Date: 2007/10/21 14:26:24 $
Author:
peaklau
email:peaklau@hotmail.com
HomePage

Field Summary
 long n1
           
 long n2
           
 long n3
           
 long n4
           
 long n5
           
 boolean plus
           
 
Constructor Summary
BigInteger(long n)
           
 
Method Summary
static BigInteger add(BigInteger a, BigInteger b)
          add
static BigInteger div(BigInteger a, BigInteger b)
          div
 long getValue()
           
static BigInteger mul(BigInteger a, BigInteger b)
          mul
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

n1

public long n1

n2

public long n2

n3

public long n3

n4

public long n4

n5

public long n5

plus

public boolean plus
Constructor Detail

BigInteger

public BigInteger(long n)
Method Detail

getValue

public long getValue()

add

public static BigInteger add(BigInteger a,
                             BigInteger b)
add

Parameters:
a -
b -
Returns:

mul

public static BigInteger mul(BigInteger a,
                             BigInteger b)
mul

Parameters:
a -
b -
Returns:

div

public static BigInteger div(BigInteger a,
                             BigInteger b)
div

Parameters:
a -
b -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2009 peaklau. All Rights Reserved.