com.klg.jclass.util.formulae
Class Floor
java.lang.Object
|
+--com.klg.jclass.util.formulae.Operation
|
+--com.klg.jclass.util.formulae.Floor
- All Implemented Interfaces:
- Cloneable, Expression
- public class Floor
- extends Operation
This is a concrete implementation for the floor operation.
Floor is defined as "greatest integer less than or equal."
This is a unary operator, *???but can also work on lists???*.
Constructor Summary |
Floor(com.klg.jclass.util.formulae.Expression operand)
Define a floor operation on the given Expression |
Floor(Number operand)
Define a floor operation on the given Number |
Method Summary |
com.klg.jclass.util.formulae.Result |
evaluate()
Return the greatest integer less than or equal to the given value |
Methods inherited from class com.klg.jclass.util.formulae.Operation |
clone |
Floor
public Floor(com.klg.jclass.util.formulae.Expression operand)
- Define a floor operation on the given Expression
Floor
public Floor(Number operand)
- Define a floor operation on the given Number
evaluate
public com.klg.jclass.util.formulae.Result evaluate()
- Return the greatest integer less than or equal to the given value
- Specified by:
evaluate
in interface Expression
- Specified by:
evaluate
in class Operation
- Returns:
- The floor of the given operand