Content


NTL
Core
CFunctionModulo

CFunctionModulo


Class provides implementation of the modulo operator % for expressions. It is being used by expression runners.

Both operands are converted to integers and the result is integer number.

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

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

    CFunctionModulo(IErrorListener *error_listener, IFunction *operand1, IFunction *operand2);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/Arithmetic/FunctionModulo.h