All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface fr.inria.openmath.omapi.FloatNode

public interface FloatNode
Defines accessor/mutators for this kind of Node.

Floats may have a prefered base. When they are parsed or printed this may impact the precision loss.


Variable Index

 o DECIMAL
The decimal base is the more human readable.
 o HEXA_DECIMAL
The hexadecimal is the less error prone base.

Method Index

 o getPreferedBase()
 o getValue()
 o setPreferedBase(int)
Set the prefered base for a Float object.
 o setValue(double)

Variables

 o HEXA_DECIMAL
 public static final int HEXA_DECIMAL
The hexadecimal is the less error prone base. parse/print/parse/print cycles are done without precision loss.

 o DECIMAL
 public static final int DECIMAL
The decimal base is the more human readable. (at least in some encodings like XML)

Methods

 o setPreferedBase
 public abstract void setPreferedBase(int base) throws OMException
Set the prefered base for a Float object.

If this object has been created by a Parser this value has probably been set to match the one found during parse.

Throws: OMException
If the base is not legal throws OME_UNLEGAL_BASE
 o getPreferedBase
 public abstract int getPreferedBase()
 o setValue
 public abstract void setValue(double value)
 o getValue
 public abstract double getValue()

All Packages  Class Hierarchy  This Package  Previous  Next  Index