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.
-
DECIMAL
- The decimal base is the more human readable.
-
HEXA_DECIMAL
- The hexadecimal is the less error prone base.
-
getPreferedBase()
-
-
getValue()
-
-
setPreferedBase(int)
- Set the prefered base for a Float object.
-
setValue(double)
-
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.
DECIMAL
public static final int DECIMAL
- The decimal base is the more human readable.
(at least in some encodings like XML)
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
getPreferedBase
public abstract int getPreferedBase()
setValue
public abstract void setValue(double value)
getValue
public abstract double getValue()
All Packages Class Hierarchy This Package Previous Next Index