Content


NTL
Core
CFunctionMin

CFunctionMin


Class provides implementation of the min(arguments...) function for expressions which returns minimum 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 CFunctionMin :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

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