Numeric

This module contains the necessary tools to perform the unary and binary numeric operations.

Two main classes inherits from Binary and Unary main class, to ensure the data type is number and is able to perform the operation.

class vtlengine.Operators.Numeric.Binary

Checks that the binary operation is performed with numbers.

class vtlengine.Operators.Numeric.Unary

Checks that the unary operation is performed with a number.

Some unary operators, like round or trunc, have to be loaded with the following class:

class vtlengine.Operators.Numeric.Parameterized

Parametrized class Inherits from Unary class, to validate the data type and evaluate if it is the correct one to perform the operation. Similar to Unary, but in the end, the param validation is added.