Content


NTL
Core
CFunctionMax

CFunctionMax


Class provides implementation of the max(arguments...) function for expressions which returns maximum of the operands. It is being used by expression runners.

If one of the operands is a string, all operands are converted to strings and the result is a string. If one of the operands is a float number, all operands are converted to float numbers and the result is a float number. Otherwise all operands are converted to integer numbers and 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 CFunctionMax :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

    CFunctionMax(IErrorListener *error_listener, const Arguments &arguments);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/Mathematics/FunctionMax.h