Class provides implementation of the round(value) function for expressions which returns the nearest integer, rounding away from zero in halfway cases of the operand. It is being used by expression runners.
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 CFunctionRound :public CFunction
{
public:
// IFunction methods
bool Run() override;
CFunctionRound(IErrorListener *error_listener, IFunction *operand);
};
Namespace: | nitisa::script |
Include: | Nitisa/Modules/Script/Functions/Mathematics/FunctionRound.h |