Formula 1.0.0

hirondelle.formula.function.builtin
Class Sign

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

public final class Sign
extends Object
implements Function

sign(x): the sign of a number.


Constructor Summary
Sign()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Returns 0, -1, or +1.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sign

public Sign()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Returns 0, -1, or +1.

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