All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.inria.openmath.omapi.BigInt

java.lang.Object
   |
   +----fr.inria.openmath.omapi.BigInt

public class BigInt
extends Object
OpenMath specifies a basic integer value type that can hold as many digits as needed. Thus a big-int may be seen as a sign, a string of digits and a base used to encode them.


Constructor Index

 o BigInt()
 o BigInt(String)
 o BigInt(String, int)
 o BigInt(String, int, int)

Method Index

 o getBase()
Returns the base used for digits of the big-int.
 o getDigits()
Returns the string of digits of the big-int.
 o getSign()
Returns the sign of the big-int.
 o toString()

Constructors

 o BigInt
 public BigInt()
 o BigInt
 public BigInt(String digits)
 o BigInt
 public BigInt(String digits,
               int sign)
 o BigInt
 public BigInt(String digits,
               int sign,
               int base)

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o getDigits
 public String getDigits()
Returns the string of digits of the big-int.

Returns:
the digits of the big-int.
 o getSign
 public int getSign()
Returns the sign of the big-int.

Returns:
the sign of the big-int.
 o getBase
 public int getBase()
Returns the base used for digits of the big-int.

Returns:
the base of the big-int.

All Packages  Class Hierarchy  This Package  Previous  Next  Index