Content


NTL
Core
CFunctionAbs

CFunctionAbs


Class provides implementation of the abs(value) function for expressions which returns absolute value of the operand. It is being used by expression runners.

If operand is a float number, the result is a float number. Otherwise the result is an integer number.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CFunctionAbs :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

    CFunctionAbs(IErrorListener *error_listener, IFunction *operand);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/Mathematics/FunctionAbs.h