Class expression.roundFunc
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class expression.roundFunc

java.lang.Object
   |
   +----expression.Function
           |
           +----expression.oneArgFunction
                   |
                   +----expression.roundFunc

public class roundFunc
extends oneArgFunction
Round function

Constructor Index

 o roundFunc()

Method Index

 o apply(double)
Rounds off a double value by first adding 0.5 to it and then returning the largest integer that is less than or equal to this new value.
 o toString()
Return string "ROUND"

Constructors

 o roundFunc
  public roundFunc()

Methods

 o apply
  public double apply(double a)
Rounds off a double value by first adding 0.5 to it and then returning the largest integer that is less than or equal to this new value.
Overrides:
apply in class Function
 o toString
  public String toString()
Return string "ROUND"
Overrides:
toString in class Function

All Packages  Class Hierarchy  This Package  Previous  Next  Index