Class Abs

All Implemented Interfaces:
PostfixMathCommandI, RealUnaryFunction, Serializable
Direct Known Subclasses:
BigDecAbs

public class Abs extends UnaryFunction implements RealUnaryFunction
Absolute value function. For Numbers, it returns the absolute value of same type, so a Double will return a Double, Integer will return an Integer. For Complex it returns the modulus.
Author:
Richard Morris
See Also: