Formula 1.0.0

hirondelle.formula.function.builtin
Class Floor

Object
  extended by hirondelle.formula.function.builtin.Floor
All Implemented Interfaces:
Function

public final class Floor
extends Object
implements Function

floor(x): round a number down to the nearest integer.


Constructor Summary
Floor()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Calculate the value of a function.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Floor

public Floor()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Description copied from interface: Function
Calculate the value of a function.

It's highly recommended that the implementation validate the number of arguments passed to the function. The Check class can be used for doing the most common argument validations.

Specified by:
calculate in interface Function
Parameters:
aArgs - 0 or more arguments to the function.

Formula 1.0.0

Copyright Hirondelle Systems. Published January 31, 2013