Formula 1.0.0

hirondelle.formula.function.builtin
Class Abs

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

public final class Abs
extends Object
implements Function

abs(x): absolute value of a number.


Constructor Summary
Abs()
           
 
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

Abs

public Abs()
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