tracer.expression
Class roundFunc

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

public class roundFunc
extends oneArgFunction

Round function


Fields inherited from class tracer.expression.Function
numArgs
 
Constructor Summary
roundFunc()
           
 
Method Summary
 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.
 java.lang.String toString()
          Return string "ROUND"
 
Methods inherited from class tracer.expression.oneArgFunction
apply
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

roundFunc

public roundFunc()
Method Detail

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

toString

public java.lang.String toString()
Return string "ROUND"
Overrides:
toString in class Function