Content


NTL
Core
CFunctionTrunc

CFunctionTrunc


Class provides implementation of the trunc(value) function for expressions which returns the nearest integer not greater in magnitude than the given value. It is being used by expression runners.

The result is a float number.

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

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

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