gnu.prolog.term
Class FloatTerm
java.lang.Object
gnu.prolog.term.Term
gnu.prolog.term.AtomicTerm
gnu.prolog.term.NumericTerm
gnu.prolog.term.FloatTerm
- All Implemented Interfaces:
- Serializable, Cloneable
public class FloatTerm
- extends NumericTerm
floating point number term
- Version:
- 0.0.1
- Author:
- Constantine Plotnikov
- See Also:
- Serialized Form
Field Summary |
double |
value
value of term |
value
public final double value
- value of term
FloatTerm
public FloatTerm(String str)
- get floating point number term
- Parameters:
str
- string representation of float number
- Throws:
IllegalArgumentException
- when str is not valid string
FloatTerm
public FloatTerm(double val)
- a constructor
- Parameters:
val
- double value
getTermType
public int getTermType()
- get type of term
- Overrides:
getTermType
in class Term
- Returns:
- type of term